public function searchAction($path) { $this->setPath($path); $search = $this->docbook->getRequest()->getArgument('s'); if (empty($search)) { return $this->indexAction($path); } $_s = Helper::processDocBookSearch($search, $this->getPath()); $title = _T('Search for "%search_str%"', array('search_str' => $search)); $breadcrumbs = Helper::getBreadcrumbs($this->getPath()); $breadcrumbs[] = $title; $dbfile = new DocBookFile($this->getpath()); $page = $dbfile->getDocBookStack(); $page['type'] = 'search'; $tpl_params = array('page' => $page, 'breadcrumbs' => $breadcrumbs, 'title' => $title); $search_content = $this->docbook->display($_s, 'search', array('search_str' => $search, 'path' => Helper::buildPageTitle($this->getPath()))); return array('default', $search_content, $tpl_params); }