public function __construct() { // do this before creating template engine // TODO: move this to BaseController? $this->checkRequirements(); parent::__construct(); }
public function __construct() { $this->cat = $this->getRequest()->request->get('cat'); // must do Language::setPreference before template is initialized if ($this->cat == 'update_account') { if ($this->lang) { User::setLang($this->usr_id, $this->lang); Language::setPreference(); } } parent::__construct(); }