예제 #1
0
파일: Ucenter.php 프로젝트: weipinglee/nn2
 public function init()
 {
     $right = new checkRight();
     $right->checkLogin($this);
     //未登录自动跳到登录页
     $this->getView()->setLayout('ucenter');
 }
예제 #2
0
파일: Index.php 프로젝트: weipinglee/nn2
 public function logOutAction()
 {
     $checkRight = new checkRight();
     $checkRight->logOut();
     $this->redirect('login');
     return false;
 }