Пример #1
0
 public function init()
 {
     $right = new checkRight();
     $right->checkLogin($this);
     //未登录自动跳到登录页
     $this->getView()->setLayout('ucenter');
 }
Пример #2
0
 public function logOutAction()
 {
     $checkRight = new checkRight();
     $checkRight->logOut();
     $this->redirect('login');
     return false;
 }