修改数据可视化登录跳转页面
This commit is contained in:
parent
e8df736d40
commit
0526231290
|
@ -10,19 +10,17 @@ class VisualController extends Zend_Controller_Action
|
||||||
{
|
{
|
||||||
$this->view->config = Zend_Registry::get('config');
|
$this->view->config = Zend_Registry::get('config');
|
||||||
$this->db=Zend_Registry::get('db');
|
$this->db=Zend_Registry::get('db');
|
||||||
$this->view->nav = array(
|
$this->view->nav = array(
|
||||||
array('link'=>'/','title'=>'<i class="icon-home"></i>'),
|
array('link'=>'/','title'=>'<i class="icon-home"></i>'),
|
||||||
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