- 普通 - 未处理
thinkphp2.0版中,我修改了项目配置文件中的'TMPL_ENGINE_TYPE' => 'smarty',
'TMPL_TEMPLATE_SUFFIX' => '.html',
'TMPL_ENGINE_CONFIG' => array(
'template_dir' =>'E:/wamp/www/thinkphp_smarty/Tpl/templates/',
'cache_dir' => 'E:/wamp/www/thinkphp_smarty/Tpl/cache/',
'config_dir' => 'E:/wamp/www/thinkphp_smarty/Tpl/configs/',
'compile_dir' => 'E:/wamp/www/thinkphp_smarty/Tpl/templates_c/',
// 'compile_check' =>true,
'use_sub_dirs' => true,
)
将smarty放在ThinkPHP/Vendor的目录中,运行还是会出错。
里面IndexAction的index方法 $this->display('index/index.html');
出错提示是:“模板不存在[./Tpl/default/Index/index/index.html.html]”;
如果能整合,希望尽快给出整合的步骤,谢谢!以前一直用smarty