/** * (non-PHPdoc) * @see Xerxes\Mvc.ActionController::init() */ protected function init() { // search objects $this->engine = $this->getEngine(); $this->config = $this->engine->getConfig(); $this->query = $this->engine->getQuery($this->request); $this->helper = new SearchHelper($this->event, $this->id, $this->engine); $this->helper->addConfigLabels($this->config); $this->response->setVariable('config_local', $this->config); // disable caching $this->response->cache = false; // @todo figure out how to cache more }
public function __construct(MvcEvent $e, $id, Engine $engine) { $this->request = $e->getRequest(); $this->registry = Registry::getInstance(); $this->id = $id; $this->query = $engine->getQuery($this->request); $this->config = $engine->getConfig(); }