コード例 #1
0
ファイル: Member_Controller.php プロジェクト: arout/halcyon
 public function __construct($container)
 {
     parent::__construct($container);
     if ($this->session->get('email') === FALSE && $this->route->action != 'signup' && $this->route->action != 'register') {
         $this->redirect('login');
         exit;
     }
 }
コード例 #2
0
ファイル: Friends_Controller.php プロジェクト: arout/halcyon
 public function __construct($container)
 {
     parent::__construct($container);
     if ($this->session->get('email') === FALSE) {
         $this->redirect('login');
         exit;
     }
 }
コード例 #3
0
ファイル: Lineups_Controller.php プロジェクト: arout/halcyon
 /**
  * [__construct description]
  * @param [object] $container [Instance of Pimple]
  *
  * Often, an individual controller will need a constructor.
  * Below is an example of creating the __construct() for a
  * given controller.
  * The $app variable must be passed to the construct method,
  * and again to the parent::__construct() method call
  */
 public function __construct($app)
 {
     parent::__construct($app);
 }