更名为 traits\controller\jump 内置放入 \think\controller

继承 \think\Controller 后可以直接使用下面三个方法:
return $this->error('错误');
return $this->success('成功');
return $this->redirect('index/hello');
This commit is contained in:
thinkphp
2015-12-24 11:36:42 +08:00
parent 1b61dab806
commit 1f593930af
2 changed files with 7 additions and 3 deletions

View File

@@ -12,9 +12,11 @@
namespace think;
T('controller/view');
T('controller/jump');
class Controller
{
use \traits\controller\jump;
use \traits\controller\view;
/**