#1 278086346
我按照手册里面的,添加了配置'view' => array(
'enabled' => TRUE, // 开启Smarty支持
'config' =>array(
'template_dir' => APP_PATH.'/tpl', // 模板页面所在的目录
'compile_dir' => APP_PATH.'/tmp', // 临时文件编译目录
'cache_dir' => APP_PATH.'/tmp', // 临时文件缓存目录
'left_delimiter' => '<{', // Smarty左限定符,默认是{
'right_delimiter' => '}'>, // Smarty右限定符,默认是}
),
'auto_display' => TRUE, // 是否使用自动输出模板功能
'auto_display_sep' => '/', // 自动输出模板的拼装模式,/为按目录方式拼装,_为按下划线方式,以此类推
'auto_display_suffix' => '.html', // 自动输出模板的后缀名
),
然后我要输出的的index.html 在tpl文件夹下面
大家好,我是index.html。
现在应该就是直接去写动作:
function index(){
$this->index.html; //就是这行,我不知道怎么写,这样写不会显示index.html页面,不知道配置完后动作应该怎么写?
}
2012-09-24 17:29:32