Esempio n. 1
0
 public function __construct()
 {
     $this->locale = \bootstrap::getInstance('locale');
     request::load();
 }
Esempio n. 2
0
 /**
  * Instanciate child controller class.
  *
  * @return void
  */
 protected function iniController()
 {
     if ($this->simpleMode == false) {
         $this->iniPreConroller();
         $controller = $this->getNamespace('controller');
         self::$instances['controller'] = new $controller($this->view, self::getInstance('model'), self::getInstance('locale'), self::getInstance('conf'), self::getInstance('controllerParent'), (object) \bootstrap::getOptions());
         parent::iniControllerParams(self::getInstance('controllerParent'), $this->view);
         parent::iniControllerParams(self::getInstance('controller'), $this->view);
     }
 }