/** Generate the advanced search page * @access public * @return void */ public function advancedAction() { $form = new AdvancedSearchForm(); $this->view->form = $form; if ($this->getRequest()->isPost()) { if ($form->isValid($this->_request->getPost())) { $this->process($form->getValues()); } else { $form->populate($this->_request->getPost()); } } }
/** Generate the advanced search page */ public function advancedAction() { $form = new AdvancedSearchForm(array('disableLoadDefaultDecorators' => true)); $this->view->form = $form; if ($this->getRequest()->isPost() && $form->isValid($_POST)) { if ($form->isValid($form->getValues())) { $params = array_filter($form->getValues()); $params = $this->array_cleanup($params); $this->_flashMessenger->addMessage('Your search is complete'); $this->_helper->Redirector->gotoSimple('results', 'search', 'database', $params); } else { $form->populate($this->_getAllParams()); } } }