コード例 #1
0
ファイル: Controller.php プロジェクト: Crocodile26/php-1
 public function initialize()
 {
     parent::initialize();
     if (!$this->isAjax()) {
         $sess = $this->getOperator();
         $this->view->setVars(['_sess' => $sess]);
     }
 }
コード例 #2
0
ファイル: Controller.php プロジェクト: Crocodile26/php-1
 public function initialize()
 {
     parent::initialize();
     if ($this->isLogin() and !$this->isAjax()) {
         $this->view->setVars(['_operator' => self::operator()]);
     }
     /*
     		$this->view->setVars([
     			'advise'	=>	Advise::getAdvisesByOid($this->getOperatorId())
     		]);
     */
 }
コード例 #3
0
 public function __construct()
 {
     parent::__construct();
 }
コード例 #4
0
 public function beforeExecuteRoute()
 {
     $this->checkLoggedIn = FALSE;
     return parent::beforeExecuteRoute();
 }
コード例 #5
0
 public function beforeExecuteRoute()
 {
     $this->checkLoggedIn = FALSE;
     $this->responseMode = 'api';
     parent::beforeExecuteRoute();
 }
コード例 #6
0
ファイル: DbController.php プロジェクト: doomy/central
 public function __construct()
 {
     $this->dbh = Environment::get_dbh();
     parent::__construct();
 }
コード例 #7
0
 public function beforeExecuteRoute()
 {
     $this->responseMode = 'api';
     parent::beforeExecuteRoute();
 }
コード例 #8
0
 public function beforeExecuteRoute()
 {
     return parent::beforeExecuteRoute();
 }