Example #1
0
 /**
  * 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');
         }
     }
 }
Example #2
0
 public function __construct($isAjax = true)
 {
     parent::__construct($isAjax);
     $this->typeModel = new Admin_Models_Type();
 }
Example #3
0
 public function __construct($isAjax)
 {
     parent::__construct($isAjax);
 }
Example #4
0
 public function __construct()
 {
     parent::__construct(true);
 }