diff --git a/routing.rst b/routing.rst index 5b3900868d0..7bbb5cf0804 100644 --- a/routing.rst +++ b/routing.rst @@ -3026,6 +3026,8 @@ Troubleshooting Here are some common errors you might see while working with routing: +.. code-block:: text + Controller "App\\Controller\\BlogController::show()" requires that you provide a value for the "$slug" argument. @@ -3040,6 +3042,8 @@ But your route path does *not* have a ``{slug}`` parameter (e.g. it is ``/blog/show``). Add a ``{slug}`` to your route path: ``/blog/show/{slug}`` or give the argument a default value (i.e. ``$slug = null``). +.. code-block:: text + Some mandatory parameters are missing ("slug") to generate a URL for route "blog_show".