修改数据可视化登录跳转页面

This commit is contained in:
Li Jianxuan 2014-06-23 04:08:50 +00:00
parent e8df736d40
commit 0526231290
1 changed files with 114 additions and 116 deletions

View File

@ -15,14 +15,12 @@ class VisualController extends Zend_Controller_Action
array('link'=>'/data','title'=>$this->view->config->title->data), array('link'=>'/data','title'=>$this->view->config->title->data),
); );
$auth = Zend_Auth::getInstance(); if(view::User() === false)
if($auth->hasIdentity())
{ {
$user = $auth->getIdentity(); view::Post($this,"请先登陆",'/account/login?href='.urlencode($_SERVER['REQUEST_URI']));
$this->uid = $user->id;
}else{
$this->_redirect('/account/login?href=/visual');
} }
$this->uid = view::User('id');
} }
function indexAction() function indexAction()