Skip to content
Permalink
Browse files

Minor documentation corrections about Router::connect().

  • Loading branch information...
sam-at-github committed Feb 6, 2014
1 parent 278349a commit ae3c791b6c0361cbce609b9945de3593fe1312bd
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/Cake/Routing/Router.php
@@ -245,19 +245,19 @@ public static function resourceMap($resourceMap = null) {
* Connects a new Route in the router.
*
* Routes are a way of connecting request URLs to objects in your application. At their core routes
* are a set or regular expressions that are used to match requests to destinations.
* are a set of regular expressions that are used to match requests to destinations.
*
* Examples:
*
* `Router::connect('/:controller/:action/*');`
*
* The first parameter will be used as a controller name while the second is used as the action name.
* The first token ':controller' will be used as a controller name while the second is used as the action name.
* the '/*' syntax makes this route greedy in that it will match requests like `/posts/index` as well as requests
* like `/posts/edit/1/foo/bar`.
*
* `Router::connect('/home-page', array('controller' => 'pages', 'action' => 'display', 'home'));`
*
* The above shows the use of route parameter defaults. And providing routing parameters for a static route.
* The above shows the use of route parameter defaults, and providing routing parameters for a static route.
*
* {{{
* Router::connect(

0 comments on commit ae3c791

Please sign in to comment.
You can’t perform that action at this time.