icefusion

Admin Index Controller

Nov 5th, 2012
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.38 KB | None | 0 0
  1. class Admin_IndexController extends Zend_Controller_Action {
  2.     public function init(){
  3.         Bvb_Grid::useModRewrite(true);        
  4.     }
  5.    
  6.     public function indexAction() {
  7.        if (!Zend_Auth::getInstance()->hasIdentity()) {
  8.             return $this->redirect('/admin/auth');
  9.         }else{
  10.             return $this->redirect('/admin/home');
  11.         }
  12.     }  
  13. }
Advertisement
Add Comment
Please, Sign In to add comment