Implementing research

with new research behaviour

refs #377 refs #223
This commit is contained in:
2014-12-31 02:33:27 +01:00
parent c22ba2c108
commit 3a9c1dcc07
3 changed files with 7 additions and 9 deletions

View File

@@ -36,13 +36,11 @@ class SearchController extends Controller
{
public function searchAction(Request $request)
{
$searches = $this->get('chill.main.search_provider')->getByOrder();
$results = array();
foreach ($searches as $search ) {
$results[] = $search->renderResult($request->get('q'));
}
$results = $this->get('chill.main.search_provider')
->getResults($request->query->get('q'));
return $this->render('ChillMainBundle:Search:list.html.twig', array('results' => $results) );
return $this->render('ChillMainBundle:Search:list.html.twig',
array('results' => $results)
);
}
}