Commit 7f483b05 by Van

try on try SearchController

parent 594b47df
IdBookEngine : "b68c6848-b7d9-4083-91f0-3de6f065280e"
form_template: "elloha/form.html.twig"
results_elloha_template: "elloha/results.html.twig"
searchable_contenttypes:
- HCO
- HLO
......
......@@ -75,9 +75,16 @@ class SearchController extends Base
$idsProduct = $this->ellohaRequest->getIdProducts();
$results = $this->_searchReservableContents($idsProduct, $formData);
return $this->render('@elloha/Frontend/search/results.html.twig', [
'results' => $results
]);
try {
return $this->render($this->config['results_elloha_template'], [
'results' => $results
]);
} catch (\Exception $e) {
return $this->render('@elloha/Frontend/search/results.html.twig', [
'results' => $results
]);
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment