为了账号安全,请及时绑定邮箱和手机立即绑定

怎么创建以下代码中的tpl和template_c目录?

<?php 
require('../smarty/Smarty.class.php');//smarty引入
$smarty=new Smarty();//smarty类的实例化

$smarty->left_delimiter="{";//左定界符
$smarty->right_delimiter="}";//右定界符
$smarty->template_dir="tpl";//html模板的地址
$smarty->compile_dir="template_c";//模板编译生成的文件
$smarty->cache_dir="cache";//缓存
$smarty->caching=true;//开启缓存
$smarty->cache_Lifetime=120;//缓存时间

 ?>

正在回答

举报

0/150
提交
取消

怎么创建以下代码中的tpl和template_c目录?

我要回答 关注问题
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号