public static function ini($root = "") { require_once $root . '../core/Associates/Smarty/Smarty.class.php'; // self::$smarty = new Smarty(); // self::$smarty->force_compile = false; //self::$smarty->debugging = true; //self::$smarty->caching = true; //self::$smarty->cache_lifetime = 120; //Smarty::muteExpectedErrors(); self::$smarty->setTemplateDir('../app/storage/view/compile'); self::$smarty->setCompileDir('../app/storage/view/template'); //self::$smarty->setCacheDir('app/storage/view/cache'); }
public static function ini($root = "") { require_once $root . '../core/Associates/Smarty/Smarty.class.php'; // self::$smarty = new Smarty(); // self::$smarty->compile_check = true; self::$smarty->force_compile = true; self::$smarty->debugging = false; self::$smarty->caching = false; self::$smarty->use_sub_dirs = false; self::$smarty->cache_lifetime = 120; self::$smarty->left_delimiter = '{'; self::$smarty->right_delimiter = '}'; self::$smarty->smarty_debug_id = 'SMARTY_DEBUG'; self::$smarty->clearAllCache(3600); // Smarty::muteExpectedErrors(); self::$smarty->setCompileDir($root . '../app/storage/view/template'); self::$smarty->setCacheDir($root . '../app/storage/view/cache'); self::$smarty->setPluginsDir(array($root . '../app/themes/' . Config::get('themes.name') . '/_plugins', $root . '../core/Associates/Smarty/plugins')); }