我真的搜索过,但一无所获。
我是模板精简版的新手。我添加了我的项目 template_lite 库,我有两个文件。
test.php 是:
require("../src/class.template.php");
$tpl = new Template_Lite;
$tpl->compile_dir = "compiled/";
$tpl->compile_dir = "templates/";
$tpl->assign("foo","bar");
我有简单的 html 来查看我的代码
<html>
<head>
<title>Document Title</title>
</head>
<body>
{$foo}
</body>
</html>
它打印“{$foo}”而不是为什么:S