public function init() { parent::init(); $this->_identity = Zend_Auth::getInstance()->getIdentity(); $this->permisos(); $this->view->identity = $this->_identity; }
/** * Init controller plugins */ public function init() { /* Initialize action controller here */ parent::init(); $this->_flashMessenger = $this->_helper->getHelper('FlashMessenger'); $this->_manager = new Users_Model_User_Manager(); }
/** * Initialize Controller * * @return void */ public function init() { /* Initialize */ parent::init(); /* is Dashboard Controller */ $this->_useDashboard(); }
public function init() { parent::init(); $this->_helper->layout->setLayout('layout-admin'); $this->_mailHelper = $this->_helper->getHelper('Mail'); $this->_serverSoap = new Zend_Soap_Client($this->_config['resources']['view']['urlSoapWsdl']); }
/** * Init controller plugins * * @return closure */ public function init() { /* Initialize */ parent::init(); /* is Dashboard Controller */ $this->_useDashboard(); $this->_flashMessenger = $this->_helper->getHelper('FlashMessenger'); }
public function init() { parent::init(); $this->_config = $this->getConfig(); $this->_GetResultSoap = $this->_helper->getHelper('GetResultSoapDedicatorias'); $this->_flashMessage = new Core_Controller_Action_Helper_FlashMessengerCustom(); $this->layout(); }
public function init() { parent::init(); $this->_config = $this->getConfig(); $this->_GetResultSoap = $this->_helper->getHelper('GetResultSoapDedicatorias'); $this->_flashMessage = new Core_Controller_Action_Helper_FlashMessengerCustom(); $ua = $_SERVER['HTTP_USER_AGENT']; $controller = $this->getParam('action'); $this->_ModelLog = new Application_Model_ConfigPerfil(); $this->_ModelLog->saveCdr($ua, $controller, 'dedicatorias'); $this->layout(); }
/** * Init controller plugins */ public function init() { /* Initialize action controller here */ parent::init(); $this->_flashMessenger = $this->_helper->getHelper('FlashMessenger'); //Set Main config if (Zend_Registry::isRegistered('opauthConfig')) { $opauthConfig = Zend_Registry::get('opauthConfig'); if (isset($opauthConfig['path']) && $opauthConfig['path'] && isset($opauthConfig['callback_url']) && $opauthConfig['callback_url'] && isset($opauthConfig['security_salt']) && $opauthConfig['security_salt']) { $this->_opauthConfig['path'] = $opauthConfig['path']; $this->_opauthConfig['callback_url'] = $opauthConfig['callback_url']; $this->_opauthConfig['security_salt'] = $opauthConfig['security_salt']; } else { throw new Zend_Controller_Action_Exception('Opauth is not configured.'); } } //Set Facebook strategy if (Zend_Registry::isRegistered('fbConfig')) { $fbConfig = Zend_Registry::get('fbConfig'); if ($fbConfig['appId']) { $this->_opauthConfig['Strategy']['Facebook'] = array('app_id' => $fbConfig['appId'], 'app_secret' => $fbConfig['secret'], 'scope' => $fbConfig['scope']); } } //Set Twitter strategy if (Zend_Registry::isRegistered('twitterConfig')) { $twitterConfig = Zend_Registry::get('twitterConfig'); if ($twitterConfig['consumerKey']) { $this->_opauthConfig['Strategy']['Twitter'] = array('key' => $twitterConfig['consumerKey'], 'secret' => $twitterConfig['consumerSecret']); } } //Set Google strategy if (Zend_Registry::isRegistered('googleConfig')) { $googleConfig = Zend_Registry::get('googleConfig'); if ($googleConfig['clientId']) { $this->_opauthConfig['Strategy']['Google'] = array('client_id' => $googleConfig['clientId'], 'client_secret' => $googleConfig['clientSecret']); } } }
public function init() { /* Initialize action controller here */ parent::init(); $this->_flashMessenger = $this->_helper->getHelper('FlashMessenger'); }
public function init() { parent::init(); $this->_helper->layout->setLayout('layout-admin'); }
public function init() { /* Initialize action controller here */ parent::init(); }
/** * Init Controller * * @return void */ public function init() { parent::init(); $this->_helper->contextSwitch->setActionContext('sitemapxml', 'xml')->initContext('xml'); }
public function init() { /* Initialize */ parent::init(); }
public function init() { /* Initialize action controller here */ parent::init(); $this->_module = $this->getRequest()->getModuleName(); }
public function init() { parent::init(); }