访问protected属性的方法时怎么自定义错误?

浏览:555 发布日期:2019/03/04 分类:求助交流 关键字: thinkphp
我有一个protected属性的方法
并且这个类我添加了__call 方法,好像这个方法不太管用public function __call($name, $arguments)
    {
        // TODO: Implement __call() method.
        $this->return_data(400, 'serve error');
    }
通过链接访问时报错如下:Trying to invoke protected method app\api\controller\Index::create_user() from scope ReflectionMethod

最佳答案
评论( 相关
后面还有条评论,点击查看>>