/** * Initialize the controller. * * The workflow is: * 1. Import user. * 2. Call parent constructor * 3. Authenticate user * 4. Load language files * DO NOT CHANGE THIS ORDER! */ public function __construct() { $this->User = \BackendUser::getInstance(); parent::__construct(); $this->User->authenticate(); $this->loadLanguageFile('default'); $this->loadLanguageFile('modules'); }