TP6异常处理

一:空控制器

Controller->Error

public function __call($name, $arguments)
{
    // TODO: Implement __call() method.
    return show(config("status.controller_not_found"),"控制器不存在",null,404);
}

二:空方法

BaseController

public function __call($name, $arguments)
{
    // TODO: Implement __call() method.
    return show(config("status.action_not_found"),"{$name}方法不存在",null,404);
}
发布了2 篇原创文章 · 获赞 0 · 访问量 19

猜你喜欢

转载自blog.csdn.net/u010566157/article/details/104651532