mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Minor documentation corrections about Router::connect().
This commit is contained in:
parent
278349aff9
commit
ae3c791b6c
1 changed files with 3 additions and 3 deletions
|
@ -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(
|
||||
|
|
Loading…
Reference in a new issue