Exemplo n.º 1
0
 public function init()
 {
     parent::init();
     $this->_identity = Zend_Auth::getInstance()->getIdentity();
     $this->permisos();
     $this->view->identity = $this->_identity;
 }
Exemplo n.º 2
0
 /**
  * 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();
 }
Exemplo n.º 3
0
 /**
  * Initialize Controller
  *
  * @return void
  */
 public function init()
 {
     /* Initialize */
     parent::init();
     /* is Dashboard Controller */
     $this->_useDashboard();
 }
Exemplo n.º 4
0
 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']);
 }
Exemplo n.º 5
0
 /**
  * Init controller plugins
  *
  * @return closure
  */
 public function init()
 {
     /* Initialize */
     parent::init();
     /* is Dashboard Controller */
     $this->_useDashboard();
     $this->_flashMessenger = $this->_helper->getHelper('FlashMessenger');
 }
Exemplo n.º 6
0
 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();
 }
Exemplo n.º 7
0
 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();
 }
Exemplo n.º 8
0
 /**
  * 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']);
         }
     }
 }
Exemplo n.º 9
0
 public function init()
 {
     /* Initialize action controller here */
     parent::init();
     $this->_flashMessenger = $this->_helper->getHelper('FlashMessenger');
 }
Exemplo n.º 10
0
 public function init()
 {
     parent::init();
     $this->_helper->layout->setLayout('layout-admin');
 }
Exemplo n.º 11
0
 public function init()
 {
     /* Initialize action controller here */
     parent::init();
 }
Exemplo n.º 12
0
 /**
  * Init Controller
  *
  * @return void
  */
 public function init()
 {
     parent::init();
     $this->_helper->contextSwitch->setActionContext('sitemapxml', 'xml')->initContext('xml');
 }
Exemplo n.º 13
0
 public function init()
 {
     /* Initialize */
     parent::init();
 }
Exemplo n.º 14
0
 public function init()
 {
     /* Initialize action controller here */
     parent::init();
     $this->_module = $this->getRequest()->getModuleName();
 }
Exemplo n.º 15
0
 public function init()
 {
     parent::init();
 }