X-Git-Url: https://git.rapsys.eu/treebundle/blobdiff_plain/7c186a8ba6c5a23f7ec0c02d39efb36260593b4f..17bf62df138ce9e4d6c86e7e523f467cb109888c:/Controller/TreeController.php diff --git a/Controller/TreeController.php b/Controller/TreeController.php index a8f1992..53bd429 100644 --- a/Controller/TreeController.php +++ b/Controller/TreeController.php @@ -46,8 +46,20 @@ class TreeController extends AbstractController { * @return Response The rendered view */ public function index(Request $request, string $path): Response { + //Set title + $this->context['title'] = [ + 'page' => 'Page title', + 'section' => 'Section title', + 'site' => 'Site title' + ]; + + //Set canonical + $this->context['canonical'] = ''; + //Render template $response = $this->twig->render('@RapsysTree/index.html.twig', $this->context); + var_dump($response); + exit; $response->setEtag(md5($response->getContent())); $response->setPublic(); $response->isNotModified($request);