Skip to content

Commit

Permalink
Ran into issues ( CakeDC/users#30 ) assuming that routes defined late…
Browse files Browse the repository at this point in the history
…r would be overwrite routes defined first. Added this passage to make clear that it is the other way around.
  • Loading branch information
ionas committed Dec 25, 2011
1 parent ce27695 commit 59909e6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions en/development/routing.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,9 @@ are matched. This means that the order you place routes can affect how
routes are parsed. It's generally a good idea to place most frequently
visited routes at the top of the routes file if possible. This will
save having to check a number of routes that won't match on each request.
After connecting routes you can manipulate the order of routes using
:php:meth:`Router::promote()`.
Notice: by default if you define two routes the one defined first has
higher priority over the one defined latter. After connecting routes you
can manipulate the order of routes using :php:meth:`Router::promote()`.

CakePHP also comes with a few default routes to get you started. These
can be disabled later on once you are sure you don't need them.
Expand Down

0 comments on commit 59909e6

Please sign in to comment.