Beispiel #1
0
 public function init()
 {
     parent::init();
     if ($this->doAuth) {
         $this->auth();
         if (!$this->userInfo) {
             $this->redirectTo('login', 'index');
         }
         $this->getView()->userInfo = $this->userInfo;
     }
 }
Beispiel #2
0
 /**
  * init
  */
 public function init()
 {
     parent::init();
     $this->setView(AjaxView::create());
 }
Beispiel #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());
 }