ThinkPHP3.2.3版本切换Smarty后马上报“非法操作”的错误

浏览:935 发布日期:2016/07/22 分类:求助交流
按照手册配置了
//模板引擎使用smarty
'TMPL_ENGINE_TYPE' => 'Smarty',
'TMPL_ENGINE_CONFIG' => array('plugins_dir'=>'./Application/Smarty/Plugins/',),

但是刷新页面立马报错:
非法操作:__CONTROLLER__
错误位置
FILE: C:\wamp\www\haomen\ThinkPHP\Library\Think\Controller.class.php  LINE: 170
TRACE
#0 C:\wamp\www\haomen\ThinkPHP\Library\Think\Controller.class.php(170): E('\xE9\x9D\x9E\xE6\xB3\x95\xE6\x93\x8D\xE4\xBD\x9C:__...')
#1 [internal function]: Think\Controller->__call('__CONTROLLER__', '')
#2 C:\wamp\www\haomen\ThinkPHP\Library\Think\App.class.php(114): ReflectionMethod->invokeArgs(object(Admin\Controller\IndexController), Array)
#3 C:\wamp\www\haomen\ThinkPHP\Library\Think\App.class.php(204): Think\App::exec()
#4 C:\wamp\www\haomen\ThinkPHP\Library\Think\Think.class.php(120): Think\App::run()
#5 C:\wamp\www\haomen\ThinkPHP\ThinkPHP.php(97): Think\Think::start()
#6 C:\wamp\www\haomen\hair\index.php(23): include('C:\\wamp\\www\\hao...')
#7 {main}
ThinkPHP3.2.3 { Fast & Simple OOP PHP framework } -- [ WE CAN DO IT JUST THINK ]

网上查了大半天,没有发现有谁是这儿报错的
最佳答案
评论( 相关
后面还有条评论,点击查看>>