Commentaire Masae
regular user
Click on this button to show the source code of the Controller and template used to render this page.
src/Controller/BlogController.php at line 162
#[Route('/search', name: 'blog_search', methods: ['GET'])] public function search(Request $request): Response { return $this->render('blog/search.html.twig', ['query' => (string) $request->query->get('q', '')]); }
templates/blog/search.html.twig at line 1
{% extends 'baseblog.html.twig' %} {% block body_id 'blog_search' %} {% block main %} <h1>Search Article</h1> {{ component('blog_search', { query: query }) }} {% endblock %} {% block sidebar %} {{ parent() }} {{ show_source_code(_self) }} {% endblock %}