//模板引擎使用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(ob
#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 fr
网上查了大半天,没有发现有谁是这儿报错的
最佳答案