Exemplo n.º 1
0
 /**
  * Initialize the object
  */
 public function __construct()
 {
     // Load user object before calling the parent constructor
     $this->import('FrontendUser', 'User');
     parent::__construct();
     // Check whether a user is logged in
     define('BE_USER_LOGGED_IN', $this->getLoginStatus('BE_USER_AUTH'));
     define('FE_USER_LOGGED_IN', $this->getLoginStatus('FE_USER_AUTH'));
 }
Exemplo n.º 2
0
 /**
  * load language file
  */
 public function __construct()
 {
     parent::__construct();
     // required for form captcha
     $this->loadLanguageFile('default');
 }