function _includeSite($racine) { include $racine . getCurrentConfig()->getLibDir() . 'Site.class.php'; }
function _loadConfig() { $this->config = getCurrentConfig(); if (!is_a($this->config, 'ConfigBase') || !is_subclass_of($this->config, 'ConfigBase')) { throw new Exception('La classe de configuration DOIT heriter de la classe Config.'); } if ($this->config->isDevMode()) { @error_reporting(E_ALL); } $this->modelDir = $this->config->getModelDir(); $this->vueDir = $this->config->getVueDir(); $this->libDir = $this->config->getLibDir(); define('FULL_VUE_DIR', $this->racine() . $this->config->getVueDir()); define('SITE_SHORT_NAME', $this->config->getSiteShortName()); return true; }