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