コード例 #1
0
 public function __construct()
 {
     $this->model = Users::getInstance();
     if (!$this->isAdmin()) {
         return Redirect::to("logout");
     }
 }
コード例 #2
0
 /**
  * Create a new controller instance.
  *
  * @return void
  */
 public function __construct()
 {
     $this->model = Users::getInstance();
 }