public function run()
 {
     /*
      * Lance et pilote l'application
      */
     $this->getConfig();
     $this->resetDebugMode();
     DebugAppModel::logDetail();
     $this->setRoutage();
     $this->initController();
     $this->initView();
 }
Exemple #2
0
 public function run()
 {
     /*
      * Lance et pilote l'application
      * NB: Tout les if method_exists permette de lancer des fonction propre à chaque application
      * avant et/ou après chaque étape du bootstrap
      */
     // Charge la config de l'application (et non du site)
     if (method_exists('PluginAppModel', 'beforeConfig')) {
         PluginAppModel::beforeConfig();
     }
     $this->getConfig();
     if (method_exists('PluginAppModel', 'afterConfig')) {
         PluginAppModel::afterConfig();
     }
     DebugAppModel::resetDebug();
     // Reset les log de debuguage
     DebugAppModel::logDetail();
     // Log les détail si la config le demande
     // Initialise le routage (récupére la class et la method)
     if (method_exists('PluginAppModel', 'beforeRoutage')) {
         PluginAppModel::beforeRoutage();
     }
     $this->setRoutage();
     if (method_exists('PluginAppModel', 'afterRoutage')) {
         PluginAppModel::afterRoutage();
     }
     // Initialise le controller
     if (method_exists('PluginAppModel', 'beforeController')) {
         PluginAppModel::beforeController();
     }
     $this->initController();
     if (method_exists('PluginAppModel', 'afterController')) {
         PluginAppModel::afterController();
     }
     // Innitialise la view
     if (method_exists('PluginAppModel', 'beforeView')) {
         PluginAppModel::beforeView();
     }
     $this->initView();
     if (method_exists('PluginAppModel', 'afterView')) {
         PluginAppModel::afterView();
     }
 }