Beispiel #1
0
 protected function setRequiredParamsToMakeContentHeader()
 {
     // Used by content header.
     // Using homepage template.
     Hotspot_Plugin_ViewSetup::setUpSiteTemplate(Hotspot_Plugin_ViewSetup::FRONTENDVIEW);
     //$this->_helper->viewRenderer->setNoRender();
     $this->view->paramsHolder = new StdClass();
     $this->view->location = new Location(Tag::myUrlDecode($this->_getParam('city')), Tag::myUrlDecode($this->_getParam('state')), Tag::myUrlDecode($this->_getParam('country')), Tag::myUrlDecode($this->_getParam('region')));
     $this->view->paramsHolder = $this->view->location->mergeToAnotherClass($this->view->paramsHolder);
     $this->view->paramsHolder->query = Tag::myUrlDecode($this->_getParam('query'));
     $this->view->paramsHolder->cat1 = Tag::myUrlDecode($this->_getParam('cat1'));
     $this->view->paramsHolder->cat2 = Tag::myUrlDecode($this->_getParam('cat2'));
     $this->view->paramsHolder->cat3 = Tag::myUrlDecode($this->_getParam('cat3'));
     $this->view->paramsHolder->cat4 = Tag::myUrlDecode($this->_getParam('cat4'));
     $this->view->paramsHolder->cat5 = Tag::myUrlDecode($this->_getParam('cat5'));
     $registry = Zend_Registry::getInstance();
     $config = $registry->get('CONFIG');
     $this->view->limit = $config->search->pagelimit;
     $this->view->offset = $this->_getParam('page');
     if (empty($this->view->offset)) {
         $this->view->offset = 0;
     } else {
         $this->view->offset = ($this->view->offset - 1) * 10;
     }
     $this->view->router = Common::getRouteName();
 }
Beispiel #2
0
 function indexAction()
 {
     // Using homepage template.
     Hotspot_Plugin_ViewSetup::setUpSiteTemplate(Hotspot_Plugin_ViewSetup::SIMPLEVIEW);
     //$this->_helper->viewRenderer->setNoRender();
     //echo 'wlecome to hotspot101';
 }
Beispiel #3
0
 public function init()
 {
     // Used by content header.
     // Using homepage template.
     Hotspot_Plugin_ViewSetup::setUpSiteTemplate(Hotspot_Plugin_ViewSetup::SIMPLEVIEW);
 }
Beispiel #4
0
 function inactiveAction()
 {
     Hotspot_Plugin_ViewSetup::setUpSiteTemplate(Hotspot_Plugin_ViewSetup::SIMPLEVIEW);
     $this->renderScript('posting/404.phtml');
 }
Beispiel #5
0
 function refinedispatchAction()
 {
     Hotspot_Plugin_ViewSetup::setUpSiteTemplate(-1);
     $this->_helper->viewRenderer->setNoRender();
     echo $businessType = $this->_getParam('controller');
     $formData = array();
     $request = $this->getRequest();
     // Init lisitng form.
     //$this->form = new RefineForm();
     if ($request->isPost()) {
         // Get the form data form post.
         $formData = $request->getPost();
         foreach ($formData as $key => $value) {
             echo $key . '=>' . $value . "<br />";
         }
         if ($formData['searchtype'] == 1) {
             echo $this->buildSearchUri($businessType, $formData);
             $this->_redirect($this->buildSearchUri($businessType, $formData));
         } elseif ($formData['searchtype'] == 2) {
             echo $this->buildRefineUri($businessType, $formData);
             $this->_redirect($this->buildRefineUri($businessType, $formData));
         }
     }
 }