:(
Unable to load template file 'Activities/index.html'
错误位置
FILE: /Applications/XAMPP/xamppfiles/htdocs/itao/ThinkPHP/Library/Vendor/Smarty/sysplugins/smarty_internal_templateba
TRACE
#0 /Applications/XAMPP/xamppfiles/htdocs/itao/ThinkPHP/Library/Vendor/Smarty/sysplugins/smarty_internal_templateba
#1 /Applications/XAMPP/xamppfiles/htdocs/itao/ThinkPHP/Library/Think/Template/Driver/Smarty.class.php(39): Smarty_Internal_Templateba
#2 /Applications/XAMPP/xamppfiles/htdocs/itao/ThinkPHP/Library/Behavior/ParseTemplateBehavior.class.php(43): Think\Template\Driver\Smarty->fetch('./Application/T...', Array)
#3 /Applications/XAMPP/xamppfiles/htdocs/itao/ThinkPHP/Library/Think/Hook.class.php(119): Behavior\ParseTemplateBehavior->run(Array)
#4 /Applications/XAMPP/xamppfiles/htdocs/itao/ThinkPHP/Library/Think/Hook.class.php(89): Think\Hook::exec('Behavior\\ParseT...', 'view_parse', Array)
#5 /Applications/XAMPP/xamppfiles/htdocs/itao/ThinkPHP/Library/Think/View.class.php(126): Think\Hook::listen('view_parse', Array)
#6 /Applications/XAMPP/xamppfiles/htdocs/itao/ThinkPHP/Library/Think/View.class.php(72): Think\View->fetch('Tpl@Activities:...', '', '')
#7 /Applications/XAMPP/xamppfiles/htdocs/itao/ThinkPHP/Library/Think/Controller.class.php(56): Think\View->display('Tpl@Activities:...', '', '', '', '')
#8 /Applications/XAMPP/xamppfiles/htdocs/itao/Application/Home/Controller/IndexController.class.php(37): Think\Controller->display('Tpl@Activities:...')
#9 /Applications/XAMPP/xamppfiles/htdocs/itao/Application/Home/Controller/IndexController.class.php(12): Home\Controller\IndexController->hot_products()
#10 [internal function]: Home\Controller\IndexController->index()
#11 /Applications/XAMPP/xamppfiles/htdocs/itao/ThinkPHP/Library/Think/App.class.php(173): ReflectionMethod->invoke(ob
#12 /Applications/XAMPP/xamppfiles/htdocs/itao/ThinkPHP/Library/Think/App.class.php(110): Think\App::invokeAction(ob
#13 /Applications/XAMPP/xamppfiles/htdocs/itao/ThinkPHP/Library/Think/App.class.php(204): Think\App::exec()
#14 /Applications/XAMPP/xamppfiles/htdocs/itao/ThinkPHP/Library/Think/Think.class.php(120): Think\App::run()
#15 /Applications/XAMPP/xamppfiles/htdocs/itao/ThinkPHP/ThinkPHP.php(97): Think\Think::start()
#16 /Applications/XAMPP/xamppfiles/htdocs/itao/indexp.php(26): require('/Applications/X...')
#17 {main}
配置如下
'TMPL_ENGINE_TYPE' => 'Smarty',
'TMPL_ENGINE_CONFIG' => array(
'caching' => TRUE,
'THINK_PLUGIN_ON' => true,
'TMPL_CACHE_ON' => true,
'template_dir' => TMPL_PATH,
'compile_dir' => TEMP_PATH,
'cache_dir' => CACHE_PATH,
'left_delimiter' => '{',
'right_delimiter' => '}',
),
最佳答案