【已解决】tp5的$this->error();无效

浏览:5941 发布日期:2016/03/08 分类:求助交流
tp5的$this->error();无效,3.2就好好的。
要在前面加return或者echo才有效果。

请教下,咋回事呢?
官方的说明里面写的就是这样做的
/**
* 用法:
* T('controller/Jump');
* class index
* {
* use \traits\controller\Jump;
* public function index(){
* $this->error();
* $this->redirect();
* }
* }
*/
最佳答案
评论( 相关
后面还有条评论,点击查看>>