Example #1
0
 public function initialize()
 {
     parent::initialize();
     if (!$this->isAjax()) {
         $sess = $this->getOperator();
         $this->view->setVars(['_sess' => $sess]);
     }
 }
Example #2
0
 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())
     		]);
     */
 }
 public function __construct()
 {
     parent::__construct();
 }
 public function beforeExecuteRoute()
 {
     $this->checkLoggedIn = FALSE;
     return parent::beforeExecuteRoute();
 }
 public function beforeExecuteRoute()
 {
     $this->checkLoggedIn = FALSE;
     $this->responseMode = 'api';
     parent::beforeExecuteRoute();
 }
Example #6
0
 public function __construct()
 {
     $this->dbh = Environment::get_dbh();
     parent::__construct();
 }
 public function beforeExecuteRoute()
 {
     $this->responseMode = 'api';
     parent::beforeExecuteRoute();
 }
 public function beforeExecuteRoute()
 {
     return parent::beforeExecuteRoute();
 }