setCompileDir(ROOT."plusion/templates_c/");$smarty->setC">
时间:2021-07-01 10:21:17 帮助过:16人阅读
define("ROOT", str_replace("\\", "/",dirname(__FILE__)).'/');
require_once ROOT.'libs/Smarty.class.php';
$smarty=new Smarty();
$smarty->setTemplateDir(ROOT."tpl");
$smarty->setCompileDir(ROOT."plusion/templates_c/");
$smarty->setConfigDir(ROOT."plusion/configs/");
$smarty->setCacheDir(ROOT."plusion/cache/");
$smarty->debugging = false;
$smarty->left_delimiter = '<{';
$smarty->right_delimiter = '}>';
?>
require "smarty.php";
$smarty->assign("title" , "smarty模板技术");//编辑器提示BUG未定义的变量$smarty,搞不懂上面require进去了,还怎么报这个错
$smarty->assign("content","通过详细的安装使用步骤为你展示smarty模板技术");
$smarty->display("test.html");
?>
<{$title}>
<{$content}>
require "smarty.php";
$smarty->assign("title" , "smarty模板技术");//编辑器提示BUG未定义的变量$smarty,搞不懂上面require进去了,还怎么报这个错
$smarty->assign("content","通过详细的安装使用步骤为你展示smarty模板技术");
$smarty->display("test.html");
?>
被当做 html 标记,所以不会显示
require "smarty.php";
$smarty->