29 lines
474 B
PHP
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()
|
|
{
|
|
|
|
}
|
|
|
|
}
|
|
|