public function debugger($isException)
 {
     if ($isException) {
         $ex = ExceptionManager::getInstance()->getException();
         $this->tpl->setVar('exception', $ex, false, true);
         $this->tpl->setFile('layouts' . DS . 'debugException.tpl.php');
     } else {
         $err = ErrorManager::getInstance()->getError();
         $this->tpl->setVar('error', $err, false, true);
         $this->tpl->setFile('layouts' . DS . 'debugError.tpl.php');
     }
 }
}
if (defined('ENVIRONNEMENT')) {
    static::setEnv(ENVIRONNEMENT);
}
// Autoloader cache
if (defined('AUTOLOADER_CACHE')) {
    Autoloader::setCache(AUTOLOADER_CACHE);
    //Globalize essentials classes
    if (!static::getDebug() && defined('AUTOLOADER_GLOBALIZER') && AUTOLOADER_GLOBALIZER) {
        $globalizer = new Globalizer(static::getGlobalizeClassList(), true);
        $globalizer->loadGlobalizedClass();
    }
}
// Exception, Error and Logger management
$exc = ExceptionManager::getInstance()->start();
$err = ErrorManager::getInstance()->start(true, static::getDebug(), static::getDebug());
$log = Logger::getInstance();
// Set language
if (!defined('PATH_LANGUAGE')) {
    throw new \Exception('Miss language path datas');
}
Language::setDatasPath(PATH_LANGUAGE);
$language = Language::getInstance();
if (!defined('LANGUAGE_DEFAULT')) {
    throw new \Exception('Miss language default');
}
$language->setLanguage(LANGUAGE_DEFAULT, true, true);
// Set default template
if (defined('TEMPLATE_DEFAULT')) {
    Template::setTemplate(TEMPLATE_DEFAULT);
}