function init() { parent::init(); require_once $this->getApplicationPath() . '/application/admin/DB.php'; // require_once $this->getApplicationPath() . '/application/admin/Log.php'; $app = Stuzo_Application_Core::getInstance($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()); require_once $this->getApplicationPath() . '/vendor/autoload.php'; $this->setNoRender(); $this->view->config = Zend_Registry::get('config'); $this->_model = DB::em()->getRepository('Entity\\Feed'); $this->processFormData(); $this->preDispatch(); }