php smarty 配置四个存放目录

    require("Smarty.class.php");
    $smarty = new Smarty();
    $smarty -> template_dir = "./templates"; //模板存放目录 
    $smarty -> compile_dir = "./templates_c"; //编译目录 
    $smarty -> cache_dir = "./cache"; //缓存目录
    $smarty -> config_dir = "./configs"; //缓存目录

 

posted @ 2013-10-26 01:34  无忧之路  阅读(357)  评论(0编辑  收藏  举报
无忧之路