Commit 089c84b5 authored by Fabien Potencier's avatar Fabien Potencier

tweaked docs

parent 3d14ac4e
...@@ -313,9 +313,9 @@ Named routes ...@@ -313,9 +313,9 @@ Named routes
~~~~~~~~~~~~ ~~~~~~~~~~~~
Certain extensions (such as ``UrlGenerator``) can make use of named routes. Certain extensions (such as ``UrlGenerator``) can make use of named routes.
By default Silex will generate a route name for you, that cannot really be Silex generates a default route name for each controller but you can override
used. You can give a route a name by calling ``bind`` on the ``Controller`` it by calling ``bind`` on the ``Controller`` object that is returned by the
object that is returned by the routing methods:: routing methods::
$app->get('/', function () { $app->get('/', function () {
... ...
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment