PHP下载Smarty后,在使用的时候会报出Fatal error: Smarty error: the $compile_dir ‘templates_c’ does not exist, or is not a directory.的错误。
解决方法:在你下载的Smarty目录下找的demo目录,在其目录下建立一个templates_c目录,然后打开Smarty.class.php文件找到$compile_dir把路径改为templates_c所在路径
PHP下载Smarty后,在使用的时候会报出Fatal error: Smarty error: the $compile_dir ‘templates_c’ does not exist, or is not a directory.的错误。
解决方法:在你下载的Smarty目录下找的demo目录,在其目录下建立一个templates_c目录,然后打开Smarty.class.php文件找到$compile_dir把路径改为templates_c所在路径