public static function setSmarty($smarty) { self::$smarty = $smarty; // Disable debugging and caching self::$smarty->debugging = FALSE; self::$smarty->caching = FALSE; }