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