public function preDispatch() { parent::preDispatch(); $this->_helper->layout->setLayout('2column'); Base_Form_Element_Uploadify::bypassSession(); $this->_session = new Zend_Session_Namespace('uplodify'); }
public function preDispatch() { parent::preDispatch(); //$this->_helper->layout->disableLayout(); //$this->_helper->viewRenderer->setNoRender(true); //$this->_helper->layout->setLayout('advice-layout-2column'); }
public function preDispatch() { parent::preDispatch(); $this->_helper->layout->disableLayout(); $this->getHelper('viewRenderer')->setNoRender(); $this->_jsonServer->setClass($this->_getHandleClassName()); $this->_jsonServer->handle(); }
public function preDispatch() { parent::preDispatch(); $this->_helper->layout->setLayout('3column-profile-user'); $userid = $this->_getParam('id'); $userM = new Application_Model_User(); $userObject = $userM->find($userid); $this->view->userObject = $userObject; }
public function preDispatch() { parent::preDispatch(); $blockM = new Base_View_Block(); $path = "/layouts/scripts/page/blocks/work-study-volunteer"; $blocks = array("name" => "search-work-study-volunteer", "order" => "10", "path" => $path); $blockM->addBlock($blocks, 'work-study-volunteer'); $blocks = array("name" => "right-banner", "order" => "9", "path" => $path); $blockM->addBlock($blocks, 'work-study-volunteer'); $blocks = array("name" => "work-study-volunteer-categories", "order" => "7", "path" => $path); $blockM->addBlock($blocks, 'work-study-volunteer'); $this->_helper->layout->setLayout('journal-layout-2column'); }
public function preDispatch() { parent::preDispatch(); if (Zend_Auth::getInstance()->hasIdentity()) { if ('logout' != $this->getRequest()->getActionName()) { $this->_helper->_redirector->gotoUrl($this->view->seoUrl('/employee/dashboard')); } } else { if ('logout' == $this->getRequest()->getActionName()) { $this->_flashMessenger->addMessage(array('success' => 'You have successfully logged out!')); $this->_helper->_redirector->gotoUrl($this->view->seoUrl('/index/login')); } } }
public function preDispatch() { parent::preDispatch(); $request = $this->getRequest(); if (isset($_GET['wsdl'])) { $webService = new Logic_WebService(); if (!headers_sent()) { header('Content-Type: text/xml'); } echo $webService->autodiscoverWsdlDocument(); } else { $service = new Logic_Soap_Server(($_SERVER['SERVER_PROTOCOL'] === 'HTTP/1.1' ? 'http://' : 'https://') . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'] . '?wsdl', array('soap_version' => SOAP_1_2, 'cache_wsdl' => WSDL_CACHE_MEMORY)); $service->setClass(Logic_WebService::generateWSClassName()); $service->setClassmap($this->_getWsClassMapping()); $service->handle(); } exit; }
/** * The default action - show the home page */ public function preDispatch() { parent::preDispatch(); $this->_helper->layout->setLayout('admin-login'); if (Zend_Auth::getInstance()->hasIdentity()) { if ('logout' != $this->getRequest()->getActionName()) { $usersNs = new Zend_Session_Namespace("members"); if ($usersNs->userType == 'administrator') { $this->_helper->redirector('index', 'index', 'admin'); } else { $this->_helper->redirector('logout', 'login', 'admin'); } } } else { if ('logout' == $this->getRequest()->getActionName()) { $this->_helper->redirector('index', 'login', 'admin'); } } }
public function preDispatch() { parent::preDispatch(); $this->_helper->layout->setLayout('3column-my-account'); $blockM = new Base_View_Block(); $path = "/layouts/scripts/page/blocks/myaccount"; $blocks = array("name" => "weather", "order" => "11", "path" => $path); $blockM->addBlock($blocks, 'myaccount'); $blocks = array("name" => "time", "order" => "9", "path" => $path); $blockM->addBlock($blocks, 'myaccount'); $blocks = array("name" => "adv", "order" => "8", "path" => $path); $blockM->addBlock($blocks, 'myaccount'); $blocks = array("name" => "people", "order" => "7", "path" => $path); $blockM->addBlock($blocks, 'myaccount'); $blocks = array("name" => "whats-going-on", "order" => "6", "path" => $path); $blockM->addBlock($blocks, 'myaccount'); $blocks = array("name" => "journal", "order" => "5", "path" => $path); $blockM->addBlock($blocks, 'myaccount'); $blocks = array("name" => "request", "order" => "7", "path" => $path); $blockM->addBlock($blocks, 'myaccount'); }
public function preDispatch() { parent::preDispatch(); $this->_helper->layout->setLayout('journal-layout-2column'); //$this->_helper->layout->setLayout('advice-layout-2column'); }
public function preDispatch() { parent::preDispatch(); $this->_helper->layout->setLayout('2column'); }
public function preDispatch() { $this->view->type = $this->_getParam('type'); parent::preDispatch(); }
public function preDispatch() { parent::preDispatch(); $this->_helper->layout->setLayout('dih_wide'); }
public function preDispatch() { parent::preDispatch(); //$this->_helper->layout->setLayout('travel-shop'); $this->_helper->layout->setLayout('shop'); }
public function preDispatch() { parent::preDispatch(); }
public function preDispatch() { parent::preDispatch(); Base_Controller_Action_Helper_AdminActionLog::$log_table = 'administracja_uzytkownik'; $this->handleCancel(); }