Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Updating doc block for Router::__connectDefaultRoutes()

  • Loading branch information...
commit 781af4a80cd7713750fabc53c69ff1faf628bd2f 1 parent 6fe4631
Mark Story markstory authored
Showing with 14 additions and 2 deletions.
  1. +14 −2 cake/libs/router.php
16 cake/libs/router.php
View
@@ -540,17 +540,29 @@ function __parseExtension($url) {
* Connects the default, built-in routes, including prefix and plugin routes. The following routes are created
* in the order below:
*
+ * For each of the Routing.prefixes the following routes are created. Routes containing `:plugin` are only
+ * created when your application has one or more plugins.
+ *
+ * - `/:prefix/:plugin` a plugin shortcut route.
+ * - `/:prefix/:plugin/:action/*` a plugin shortcut route.
* - `/:prefix/:plugin/:controller`
* - `/:prefix/:plugin/:controller/:action/*`
* - `/:prefix/:controller`
* - `/:prefix/:controller/:action/*`
+ *
+ * If plugins are found in your application the following routes are created:
+ *
+ * - `/:plugin` a plugin shortcut route.
+ * - `/:plugin/:action/*` a plugin shortcut route.
* - `/:plugin/:controller`
* - `/:plugin/:controller/:action/*`
+ *
+ * And lastly the following catch-all routes are connected.
+ *
* - `/:controller'
* - `/:controller/:action/*'
*
- * A prefix route is generated for each Routing.prefixes declared in core.php. You can disable the
- * connection of default routes with Router::defaults().
+ * You can disable the connection of default routes with Router::defaults().
*
* @return void
* @access private
Please sign in to comment.
Something went wrong with that request. Please try again.