X-Git-Url: https://git.rapsys.eu/treebundle/blobdiff_plain/7c186a8ba6c5a23f7ec0c02d39efb36260593b4f..edfc2b18e8b69a2cd62b12d1e2cdaefed4452c18:/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);