grs7002
注册会员

UID 80066
精华
0
积分 171
帖子 112
金钱 171 喜悦币
威望 0
人脉 0
阅读权限 20
注册 2006-9-14
状态 离线
|
[广告]: q
m
请教一个smarty初学问题,关于自定义标签<{}>
<?php include "inc/libs/Smarty.class.php"; define('__SITE_ROOT', 'C:/Program Files/VertrigoServ/www/news'); // $tpl = new Smarty(); $tpl->template_dir = __SITE_ROOT . "/templates/"; $tpl->compile_dir = __SITE_ROOT . "/templates_c/"; $tpl->config_dir = __SITE_ROOT . "/configs/"; $tpl->cache_dir = __SITE_ROOT . "/cache/"; $tpl->left_delimiter = '<!--{'; $tpl->right_delimiter = '}-->'; ?> 以上为我的自定义文件
用于后面的其他页面 include
可是似乎 标签 <!--{}--> 不起作用, 引入变量后 仍然是 <!-- 某某文字 --> 。请问是哪里出了问题?
谢谢
[ 本帖最后由 grs7002 于 2007-1-30 12:07 PM 编辑 ]
|
|