From 9691e54248fe9457dd1afc94876eef2ed2ba6c59 Mon Sep 17 00:00:00 2001 From: Sam Date: Thu, 6 Feb 2014 20:34:02 +1100 Subject: [PATCH] Minor comments only. Added more explanation of $defaults parameter to Router::connect(). Trying to clarify how it relates to the routing destination and the template string tokens. --- lib/Cake/Routing/Router.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/Cake/Routing/Router.php b/lib/Cake/Routing/Router.php index 7ec7f44f8..489e178a3 100644 --- a/lib/Cake/Routing/Router.php +++ b/lib/Cake/Routing/Router.php @@ -269,6 +269,9 @@ class Router { * * Shows connecting a route with custom route parameters as well as providing patterns for those parameters. * Patterns for routing parameters do not need capturing groups, as one will be added for each route params. + * + * $defaults is merged with the results of parsing the request URL to form the final routing destination and its + * parameters. This destination is expressed as an associative array by Router. See the output of {@link parse()}. * * $options offers four 'special' keys. `pass`, `named`, `persist` and `routeClass` * have special meaning in the $options array. @@ -304,6 +307,7 @@ class Router { * shifted into the passed arguments, supplying patterns for routing parameters and supplying the name of a * custom routing class. * @see routes + * @see parse(). * @return array Array of routes * @throws RouterException */