public function initialize() { parent::initialize(); if (!$this->isAjax()) { $sess = $this->getOperator(); $this->view->setVars(['_sess' => $sess]); } }
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()) ]); */ }