public function init() { parent::init(); $this->oProduct = new Config_Product_Product(); $this->oSkin = new Config_Skin(); $this->oHero = new Config_Hero(); }
/** * 初始化 * (non-PHPdoc) * @see AbstractController#init() */ public function init() { parent::init(); $this->oItem = new Lm_Item(); $this->oMoney = new Lm_Money(); $this->oSeal = new Config_ItemSeal(); }
public function init() { $this->_model = new RaportsDownloads(); $this->_helper->viewRenderer->setNoRender(true); $this->_helper->layout->disableLayout(); parent::init(); }
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->setLayout('2column'); Base_Form_Element_Uploadify::bypassSession(); $this->_session = new Zend_Session_Namespace('uplodify'); }
public function init() { parent::init(); $this->oQuestion = new Kubao_Question(); $this->oCommon = new Kubao_Common(); $this->oOperator = new Kubao_Operator(); }
public function init() { parent::init(); $this->socketPath = "/www/opt"; $this->oSocketServer = new Connect_SocketServer(); $this->oSocketClient = new Connect_SocketClient(); $this->oSocketQueue = new Config_SocketQueue(); }
/** * @return void */ public function init() { if (false === class_exists($this->_model) || false === class_exists($this->_indexFormFilter) || false === class_exists($this->_indexSearchFilter) || false === class_exists($this->_addForm)) { require_once 'Zend/Controller/Action/Exception.php'; throw new Zend_Controller_Action_Exception("At least one of selected classes does not exists!"); } parent::init(); }
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 __construct(Zend_Controller_Request_Abstract $request, Zend_Controller_Response_Abstract $response, array $invokeArgs = array()) { parent::__construct($request, $response, $invokeArgs); $paths = $this->view->getScriptPaths(); $this->view->setScriptPath(WWW_PATH . DS . 'views' . DS . 'scripts'); $this->view->addScriptPath($paths); //include_once('../../languages/locale/vn/static.php'); $this->getMenuTop(); $this->getMenuTopLeft(); }
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'); }
/** * 初始化配置,用户,检查是否需要登录才能访问 * @see Controller/Base_Controller_Action::init() */ public function init() { parent::init(); // $config = (@include Base_Common::$config['config_file']); // $appConfig = (@include dirname(dirname(__FILE__)) . '/etc/config.php'); // is_array($appConfig) && $config = $config + $appConfig; // $this->config = Base_Config::factory($config); // // $this->user = new Widget_User(); // // if ($this->needLogin && !$this->user->isLogin()) { // $this->response->redirect($this->user->getLoginUrl()); // } }
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'); }
/** * 初始化配置,用户,检查是否需要登录才能访问 * @see Controller/Base_Controller_Action::init() */ public function init() { parent::init(); $config = @(include Base_Common::$config['config_file']); $this->config = Base_Config::factory($config); }
/** * @return void */ public function base_init() { return parent::base_init(); }
/** * @return void */ public function init() { parent::init(); $this->_model = new SmsReceivied(); }
public function init() { parent::init(); $this->oTask = new Lm_Task(); }
public function preDispatch() { $this->view->type = $this->_getParam('type'); parent::preDispatch(); }
public function init() { parent::init(); $this->oProductPack = new Config_Product_Pack(); }
public function init() { parent::init(); $this->oServer = new Config_Server(); $this->oCron = new Lm_Cron(); }
public function init() { parent::init(); $this->_model = new WsPackageQueue(); }
/** * @return void */ public function init() { parent::init(); $this->_model = new MailPackage(); }
public function __construct(\Zend_Controller_Request_Abstract $request, \Zend_Controller_Response_Abstract $response, array $invokeArgs = array()) { parent::__construct($request, $response, $invokeArgs); $this->_jsonServer = new Zend_Json_Server(); }
public function init() { parent::init(); $this->oComplain = new Kubao_Complain(); $this->oQuestion = new Kubao_Question(); }
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 init() { parent::init(); $this->oCron = new Lm_Cron(); }