smarty 路径用的相对路径,比如./templates 但还是出现syntax error: unrecognized tag: (Smarty_Compiler.class.php, line 446) in C:\wamp\www\news\common\smarty\Smarty.class.php on line 1095求高手指教 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 $smarty->template_dir="./templates"$smarty->compile_dir="./templates_c"$smarty->cache_dir="./cache"; $smarty->config_dir = "Smarty/Config_File.class.php"; //目录变量 $smarty->caching = false; //是否使用缓存、项目在调用期间、建议不要打开 $smarty->template_dir = './templates/'.$smartytpl; //设置模板目录 $smarty->compile_dir = './templates_c/'; //设置编译目录 $smarty->cache_dir = './smarty_cache/'; //缓存文件 $smarty->template_dir = './templates/'.$smartytpl; //设置模板目录为什么要加.$smartytpl??还有那个是数字1还是字母l?? 为什么还要在模板目录里面加一个tpl的东西啊,很好奇,不知道是什么东西 "&"这个符号是什么意思,请大虾把我解释下,谢谢! 问俩问题。。 php代码如何把utf的txt文件设置成gbk,在线等 PHP新手--奇怪的SQL查询结果 再次求教邮件问题!! 问一个简单问题,在线等 当我点击一个下拉列表内容,另一个下拉列表的内容会相应改变,应该怎样用PHP做? 如何实现删除确认? 为什么我的HTTP返回的协议头 尾部有数字(应该是十六进制)? thinkphp upload 图片批量上传问题 如何开发一个简单的个人网站 初学php 为什么提示我不对
$smarty->compile_dir="./templates_c"
$smarty->cache_dir="./cache";
$smarty->config_dir = "Smarty/Config_File.class.php"; //目录变量
$smarty->caching = false; //是否使用缓存、项目在调用期间、建议不要打开
$smarty->template_dir = './templates/'.$smartytpl; //设置模板目录
$smarty->compile_dir = './templates_c/'; //设置编译目录
$smarty->cache_dir = './smarty_cache/'; //缓存文件
为什么要加.$smartytpl??还有那个是数字1还是字母l??