使用smarty模板为什么不行??是3.2的bug么??

浏览:508 发布日期:2015/12/17 分类:求助交流


:(
Unable to load template file 'Activities/index.html'
错误位置

FILE: /Applications/XAMPP/xamppfiles/htdocs/itao/ThinkPHP/Library/Vendor/Smarty/sysplugins/smarty_internal_templatebase.php  LINE: 127
TRACE

#0 /Applications/XAMPP/xamppfiles/htdocs/itao/ThinkPHP/Library/Vendor/Smarty/sysplugins/smarty_internal_templatebase.php(362): Smarty_Internal_Templatebase->fetch('Activities/inde...', NULL, NULL, NULL, true)
#1 /Applications/XAMPP/xamppfiles/htdocs/itao/ThinkPHP/Library/Think/Template/Driver/Smarty.class.php(39): Smarty_Internal_Templatebase->display('Activities/inde...')
#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(object(Home\Controller\IndexController))
#12 /Applications/XAMPP/xamppfiles/htdocs/itao/ThinkPHP/Library/Think/App.class.php(110): Think\App::invokeAction(object(Home\Controller\IndexController), 'index')
#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' => '}',
),

最佳答案
评论( 相关
后面还有条评论,点击查看>>