修改数据可视化登录跳转页面
This commit is contained in:
parent
e8df736d40
commit
0526231290
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue