建立空模块修改基类、空控制器、错误提示页面
This commit is contained in:
1 parent
eb68505fb8
commit
59b7e4ef1f
17 files changed
+216
-75
No files matched your search
@@ -2,20 +2,11 @@
|
||||
|
||||
namespace app\index\controller;
|
||||
|
||||
// 引用控制器类
|
||||
use think\Controller;
|
||||
// 引用空控制器基类
|
||||
use app\common\controller\BaseError;
|
||||
|
||||
class Error extends Controller
|
||||
class Error extends BaseError
|
||||
{
|
||||
/**
|
||||
* 显示资源列表
|
||||
*
|
||||
* @return \think\Response
|
||||
*/
|
||||
public function index()
|
||||
{
|
||||
// 跳转页面
|
||||
$this->redirect(url('/notfound'));
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in new issue
Block a user