public function init() { parent::init(); if ($this->doAuth) { $this->auth(); if (!$this->userInfo) { $this->redirectTo('login', 'index'); } $this->getView()->userInfo = $this->userInfo; } }
/** * init */ public function init() { parent::init(); $this->setView(AjaxView::create()); }
public function init() { parent::init(); $this->getView()->assign('service_status', (new \Service\Mock\Console())->status()); $this->getView()->assign('account_user', \Service\Account::getUser()); }