专注于互联网--专注于架构

最新标签
网站地图
文章索引
Rss订阅

首页 »PHP教程 » 配制Smarty的子类的思路方法 »正文

配制Smarty的子类的思路方法

来源: 发布时间:星期一, 2009年1月12日 浏览:13次 评论:0
<?php
('SMARTY_DIR','Smarty/');//定义模板文件夹路径
require(SMARTY_DIR.'libs/Smarty..php');//引入模板类文件
mySmarty extends Smarty{
function mySmarty{
     $this->template_dir = SMARTY_DIR.'demo/templates/';
  $this->compile_dir = SMARTY_DIR.'demo/templates_c/';
  $this->config_dir = SMARTY_DIR.'demo/configs/';
  $this->cache_dir = SMARTY_DIR.'demo/cache/';
  $this->left_delimiter = '<{';
  $this->right_delimiter = '}>';
    $this->caching = true;
}
}
$mySmarty = mySmarty;
?>


0

相关文章

读者评论

发表评论

  • 昵称:
  • 内容: