コード例 #1
0
 /**
  * 登入页
  * */
 public function actionlogin()
 {
     $ret_login = usercookie::userCheckCookie();
     if ($ret_login) {
         //已登录帐号 直接跳转到首页
         $user_type = isset($_SESSION['type']) ? $_SESSION['type'] : 0;
         $this->redirect('/erp/manage');
     } else {
         $this->renderPartial('/erp/login', array('ret_msg' => $this->ret_msg));
     }
 }