public function init() { parent::init(); $this->registry = Zend_Registry::getInstance(); $this->initView(); //cms $this->view->setScriptPath('./application/views/scripts/'); $this->view->setHelperPath('./application/views/helpers/', 'Helper'); $this->view->addHelperPath('./library/Zcms/View/helper/', 'Zcms_View_Helper'); $this->view->addBasePath('./html/', ''); //Zsurforce $this->view->addHelperPath('./library/Zsurforce/View/Helper/', 'Zsurforce_View_Helper'); $this->view->baseUrl = $this->_request->getBaseUrl(); $this->view->basePath = $this->registry->get('base_path'); Zend_Loader::loadClass('Configuracion'); $this->view->user = Zend_Auth::getInstance()->getIdentity(); $this->info = $this->registry->get('personalizacion'); $this->view->title = $this->info->sitio->index->index->titulo; $this->session = $this->registry->get('session'); $this->view->session = $this->session; $this->debug = $this->registry->get('debug'); $this->view->debug = $this->debug; /* información de sitios y subsitios */ $this->view->sitios = Sitios::getAll(null, null, "orden")->toArray(); if (isset($this->session->sitio->id)) { $this->view->configuracion = Configuracion::getConfiguracion($this->session->sitio->id); } else { $this->view->configuracion = Configuracion::getConfiguracionDefault(); $this->session->sitio = Sitios::getSitioDefault(); } $this->registrarSitio(); $this->cargarMenuHorizontal(); $this->_loadBreadcrumItems(); }