1.不需要配置include一样可以使用smarttemplate只需要在使用的地方加上
require("path/to/class.smartTemplate.php"); //路径自己改
2. 你的配置文件没有生效,可能是配置后没有重启server,也可能是PHP读取的配置文件与你更改的不是一个文件.
require("path/to/class.smartTemplate.php"); //路径自己改
2. 你的配置文件没有生效,可能是配置后没有重启server,也可能是PHP读取的配置文件与你更改的不是一个文件.
SmartTemplate Compiler Error: Could not write compiled file.
$smarty->template_dir = __SITE_ROOT . "templates/";
$smarty->compile_dir = __SITE_ROOT . "templates_c/";
*/
templates_c需要设为apache可写权限