From c58360a69201b0043c4c2d02614f2812e397912d Mon Sep 17 00:00:00 2001 From: fatmuemoo Date: Mon, 2 Dec 2013 13:17:41 -0500 Subject: [PATCH] Update routing.rst Added a note to provide extra guidance when naming routes --- book/routing.rst | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/book/routing.rst b/book/routing.rst index 357a5c47301..c504545a2ac 100644 --- a/book/routing.rst +++ b/book/routing.rst @@ -68,6 +68,13 @@ The route is simple: return $collection; +.. note:: + + When defining routes, the key (e.g. ``blog_show``) is meaningless. + Just be sure that it's unique so no other lines override it. In most cases, a + vendorname_shortbundlename_controllername_actionname pattern + (e.g. ``acme_blog_show``) is appropriate. + .. versionadded:: 2.2 The ``path`` option is new in Symfony2.2, ``pattern`` is used in older versions.