public function __construct() { $this->locale = \bootstrap::getInstance('locale'); request::load(); }
/** * 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); } }