function init() { parent::init(); require_once $this->getApplicationPath() . '/application/admin/DB.php'; // require_once $this->getApplicationPath() . '/application/Log.php'; require_once $this->getApplicationPath() . '/application/models/CopyExportImport.php'; $app = new Stuzo_Application_Core($this->getApplicationPath() . '/application'); $options = $app->getBootstrap()->getOption('resources'); $log = new Stuzo_Application_Resource_Log($options['log']); Zend_Registry::set('log', $log->getLog()); Zend_Registry::set('logger', $log->getLog()); $this->view->app_url = $this->getApplicationUrl(); $this->view->app_path = $this->getApplicationPath(); $user = Zend_Registry::get('user'); $this->view->userIsAdmin = $user['role'] == 'super' ? true : false; }