コード例 #1
0
 public function __construct()
 {
     // do this before creating template engine
     // TODO: move this to BaseController?
     $this->checkRequirements();
     parent::__construct();
 }
コード例 #2
0
 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();
 }