Exemple #1
0
 protected function _initSession()
 {
     $options = $this->_options['resources']['session'];
     $options['bootstrap'] = $this;
     $resource = new Zend_Application_Resource_Session($options);
     $resource->init();
 }
 /**
  * Initialize the session resource.
  */
 protected function _initSession()
 {
     $options = $this->getOptions();
     $sessionOptions = array_change_key_case($options['resources']['session'], CASE_LOWER);
     $sessionResource = new Zend_Application_Resource_Session($sessionOptions);
     if (isset($sessionOptions['savehandler'])) {
         $sessionResource->setSaveHandler($sessionOptions['savehandler']);
     }
     $sessionResource->init();
     $session = new Zend_Session_Namespace("app");
     Zend_Registry::set('session', $session);
     return $session;
 }
Exemple #3
0
 public function init()
 {
     if ($this->getBootstrap()->hasPluginResource('multidb')) {
         $this->getBootstrap()->bootstrap('multidb');
     } else {
         $this->getBootstrap()->bootstrap('Db');
     }
     if ($this->getSaveHandler() instanceof Zend_Session_SaveHandler_DbTable) {
         $options = $this->getOptions();
         if (!System_Functions::tableExist($options['saveHandler']['options']['name'])) {
             $_migrationManager = new Modules_Dbmigrations_Framework_Manager();
             $_migrationManager->upTo('System_Migrations_CreateTableSession');
             $this->init();
         }
     }
     parent::init();
 }
Exemple #4
0
 public function init()
 {
     $this->_setOptionsFromConfig();
     return parent::init();
 }
Exemple #5
0
 public function init()
 {
     parent::init();
     $this->session = new Zend_Session_Namespace('session', true);
 }