/** * Configuration de smarty, chargement d'une instance du moteur. * * @todo caching conditionnel * @return Afup_Directory_Template */ public function Afup_Directory_Template() { $this->Smarty(); $this->template_dir = Afup::getLibraryPath() . '/../templates/directory/'; $this->compile_dir = Afup::getLibraryPath() . '/../cache/templates/directory/'; $this->config_dir = Afup::getLibraryPath() . '/'; $this->cache_dir = Afup::getLibraryPath() . '/../cache/templates/directory/cache/'; $this->caching = false; }
/** * Inclusion d'un fichier contenu dans les librairies. * * @param string $file */ public static function includeOnce($file) { if (file_exists(Afup::getLibraryPath() . '/' . $file)) { include_once Afup::getLibraryPath() . '/' . $file; } }