loadLayout(); $this->_initLayoutMessages('catalogsearch/session'); $this->renderLayout(); } public function resultAction() { $this->loadLayout(); try { Mage::getSingleton('catalogsearch/advanced')->addFilters($this->getRequest()->getQuery()); } catch (Mage_Core_Exception $e) { Mage::getSingleton('catalogsearch/session')->addError($e->getMessage()); $this->_redirectError( Mage::getModel('core/url') ->setQueryParams($this->getRequest()->getQuery()) ->getUrl('*/*/') ); } $this->_initLayoutMessages('catalog/session'); $this->renderLayout(); } }