function saveMenuLeftSateHideAction() { $this->_helper->layout()->disableLayout(); $moduleName = $this->_request->getModuleName(); $controllerName = $this->_request->getControllerName(); App_Env::setSession("LEFT_PLAN_STATE" . $moduleName . $controllerName, 'HIDE'); $this->render('blank', null, true); }
/** * * @return Sam_Auth */ static function getInstance() { $session = new Zend_Session_Namespace('samSession'); if (isset($session->sesSamXAuth2) and App_Env::getSession("userType") == 'customer') { $objSam = $session->sesSamXAuth2; // true ; //$_SESSION ['ses_SamX_obj']; } else { $objSam = new Sam_AuthCustomer(); $session->sesSamXAuth2 = $objSam; } App_Env::setSession("userType", 'customer'); $objSam->setUserType('customer'); return $objSam; }
static function getInstance() { //session_start(); //if(APPLICATION_ENV == 'development'){ $session = new Zend_Session_Namespace('sam_session' . uniqid(), true); //} if (isset($_SESSION['ses_SamX_obj'])) { $objSam = $_SESSION['ses_SamX_obj']; // true ; //$_SESSION ['ses_SamX_obj']; //die("isset"); } else { //die("not isset"); $objSam = new Sam_Auth(); $_SESSION['ses_SamX_obj'] = $objSam; } App_Env::setSession("userType", 'admin'); $objSam->setUserType('admin'); return $objSam; }