Symfony Demo
  • Homepage
  • Search
  • Choose language

Choose your language

  • العربية ar
  • Български bg
  • Bosanski bs
  • Català ca
  • Čeština cs
  • Deutsch de
  • English en
  • Español es
  • Euskara eu
  • Français fr
  • Hrvatski hr
  • Indonesia id
  • Italiano it
  • 日本語 ja
  • Lietuvių lt
  • Nederlands nl
  • Polski pl
  • Português (brasil) pt_BR
  • Română ro
  • Русский ru
  • Slovenščina sl
  • Српски (ћирилица) sr_Cyrl
  • Srpski (latinica) sr_Latn
  • Türkçe tr
  • Українська uk
  • 中文(中国) zh_CN

This is a demo application built in the Symfony Framework to illustrate the recommended way of developing Symfony applications.

For more information, check out the Symfony doc.

Click on this button to show the source code of the Controller and template used to render this page.

Source code used to render this page
  • Controller code
  • Twig template code

src/Controller/BlogController.php at line 156

#[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

© 2025 - The Symfony Project

MIT License