摘要:
1.【在protected目录下建立文件夹vendor/smarty,把smarty的类包放入其中】2.【在extensions目录下边建立文件CSmarty.php】//CSmarty.php文件具体内容如下(意思自己体会理解):template_dir =SMARTY_VIEW_DIR.self::DS.’tpl’; $this->compile_dir =SMARTY_VIEW_DIR.self::DS.’tpl_c’; $this->caching = true; $... 阅读全文