From ae3c791b6c0361cbce609b9945de3593fe1312bd Mon Sep 17 00:00:00 2001 From: Sam Date: Thu, 6 Feb 2014 18:41:37 +1100 Subject: [PATCH] Minor documentation corrections about Router::connect(). --- lib/Cake/Routing/Router.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/Cake/Routing/Router.php b/lib/Cake/Routing/Router.php index f5ae3847d..7ec7f44f8 100644 --- a/lib/Cake/Routing/Router.php +++ b/lib/Cake/Routing/Router.php @@ -245,19 +245,19 @@ class Router { * 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(