关于Smarty的配置文件
2013-07-18 17:21
239 查看
<?php include_once('Smarty/Smarty.class.php');//加载Smarty类库文件 $smarty=new Smarty(); //实例化一个Smarty对象 $smarty->config_dir='Smarty/Config_File.class.php';//目录变量 $smarty->caching=false; //是否启用缓存,项目在调试期间不建议使用缓存 //定义各个目录的路径 $smarty->template_dir='./templates'; //设置模版目录 $smarty->compile_dir='./templates_c'; //设置编译目录 $smarty->cache_dir='./smarty_cache'; //缓存文件夹 //定义定界符 $smarty->left_delimiter="{"; $smarty->right_delimiter="}"; ?>
相关文章推荐
- 关于项目中属性配置文件的改进
- 关于配置文件的访问次序
- 配置文件的生成,关于“make menuconfig”
- 第一部分 关于配置文件那点事
- 关于SVN配置文件的一个小例子
- 关于一个具有配置文件的 Java Project 项目(非 web 项目)在服务器上的一个便捷部署
- 关于ssh 配置文件的参数说明
- 关于web项目web.xml配置文件路径的问题。
- 关于丢失.bansh_profile配置文件造成-bansh-4.2#问题 推荐
- 关于spring boot配置maven文件配置
- 关于/etc/sysconfig/i18n 配置文件的详细介绍
- 上传AppStore关于.geojson文件的配置
- 关于Oracle asmlib配置文件中的ORACLEASM_USE_LOGICAL_BLOCK_SIZE参数:
- 关于《Orange'S》第二章bochs配置文件的一个小问题
- 关于Kernel编译配置文件 - makefile .config Kconfig
- 关于mybatis生成插件Generator配置文件中自定义注释
- 关于asp.net的配置文件
- 12-关于NFS中Exports配置文件格式与权限的分析(转载自网络)
- 关于spring配置文件中的destroy-method="close"
- smarty使用变量(从配置文件读取变量 +Smarty变量调节器)