RC2 Call to undefined function think\T()

浏览:470 发布日期:2016/03/13
5.0.0 - 普通 - 已处理
php 5.5.12

$view = new \think\View();
return $view->fetch();
正常

use think\Controller;
extends Controller
return $this->fetch();
报错:
ErrorException in Controller.php line 14
Call to undefined function think\T()

引导文件添加:
require __DIR__ . '/helper.php';
才可以
评论(
后面还有条评论,点击查看>>