/** * Admin constructor. */ public function __construct() { if (Libs_Session::start()->isAdmin()) { parent::__construct(true); } else { if (Libs_URL::get()->checkPath('login', 2)) { parent::__construct(true); } else { die('You not Admin'); } } }
public function __construct($isAjax = true) { parent::__construct($isAjax); $this->typeModel = new Admin_Models_Type(); }
public function __construct($isAjax) { parent::__construct($isAjax); }
public function __construct() { parent::__construct(true); }