Archived video

This video is archived and won't be updated. We're keeping it online for now as a courtesy.

Alternate resources: 

Routing Wildcards in Symfony 3

Video loading...

Transcript language code: 

Join Drupalize.Me to watch this video

Join today and gain instant access to our entire video library.

Log in Sign up
  • 0:08
    This page has a boring, hard-coded URL.
  • 0:12
    What our Aquanauts deserve is a dynamic route
  • 0:15
    that can handle the URL for any genus, like /genus/octopus
  • 0:20
    or /genus/hippocampus,
  • 0:24
    which is actually the genus that seahorses belong to.
  • 0:27
    Oh, man, seahorses are cute.
  • 0:30
    How do we do this?
  • 0:31
    Change the URL to /genus/{genusName}.
  • 0:38
    This genusName part could be named anything.
  • 0:40
    The important part is that it is surrounded by curly braces.

Routing Wildcards in Symfony 3


In this lesson, learn how to make use of routing wildcards in a Symfony 3 app.

Log in or sign up to download companion files.
Additional resources: 

Be careful when rendering direct user input (like we show here)! It introduces a security issue called XSS. Read more about XSS here