extranet/application/controllers/IndexController.php
2010-11-22 12:57:11 +00:00

29 lines
474 B
PHP

<?php
class IndexController extends Zend_Controller_Action
{
protected $appConfig;
public function init()
{
/* Initialize action controller here */
}
public function preDispatch()
{
$auth = Zend_Auth::getInstance();
if (!$auth->hasIdentity()){
$this->_redirect('/user/login');
} else {
$bootstrap = $this->getInvokeArg('bootstrap');
$this->appConfig = $bootstrap->getOptions();
}
}
public function indexAction()
{
}
}