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

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

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