/** * Construct this object by extending the basic Controller class */ public function __construct() { parent::__construct(); // special authentication check for the entire controller: Note the check-ADMIN-authentication! // All methods inside this controller are only accessible for admins (= users that have role type 7) \Huge\Core\Auth::checkAdminAuthentication(); }
/** * Construct this object by extending the basic Controller class. */ public function __construct() { parent::__construct(); // VERY IMPORTANT: All controllers/areas that should only be usable by logged-in users // need this line! Otherwise not-logged in users could do actions. \Huge\Core\Auth::checkAuthentication(); }
/** * Construct this object by extending the basic Controller class */ public function __construct() { parent::__construct(); // VERY IMPORTANT: All controllers/areas that should only be usable by logged-in users // need this line! Otherwise not-logged in users could do actions. If all of your pages should only // be usable by logged-in users: Put this line into libs/Controller->__construct \Huge\Core\Auth::checkAuthentication(); }
/** * Construct this object by extending the basic Controller class. The parent::__construct thing is necessary to * put checkAuthentication in here to make an entire controller only usable for logged-in users (for sure not * needed in the RegisterController). */ public function __construct() { parent::__construct(); }
/** * Construct this object by extending the basic Controller class */ public function __construct() { parent::__construct(); // this entire controller should only be visible/usable by logged in users, so we put authentication-check here \Huge\Core\Auth::checkAuthentication(); }