protected function render($template, $presenter) { if (!$this->request->isAjax()) { $GLOBALS['HTML']->header(array('title' => 'Full text search', 'selected_top_tab' => 'admin')); } parent::render($presenter->template, $presenter); if (!$this->request->isAjax()) { $GLOBALS['HTML']->footer(array()); } }