CakePHP Cookbook Documentation 5.xDisabling Generic Tables Routing RouterBuilder Quick Tour Connecting Routes Route Elements Reserved Route Elements Configuring Route Options Passing Parameters to Action Using Path Routing Using Named Routes SEO-Friendly Routing Matching Specific HTTP Methods Matching Specific Hostnames Routing File Extensions Route Scoped Middleware Grouping Middleware RESTful Routing Creating Nested Resource Routes Limiting Changing the Controller Actions Used Mapping Additional Resource Routes Prefixed Resource Routing Custom Route Classes for Resource Routes URL Inflection for Resource Routes Changing the Path Element Passed Arguments0 码力 | 1080 页 | 939.39 KB | 1 年前3
CakePHP Cookbook 3.x
Application::bootstrap() Disabling Generic Tables Routing Quick Tour Connecting Routes Route Elements Reserved Route Elements Configuring Route Options Passing Parameters to Action Using Named Routes Prefix Routing Creating Routing Custom Route Classes for Resource Routes URL Inflection for Resource Routes Changing the Path Element Passed Arguments Generating URLs Redirect Routing Entity Routing Custom Route Classes Default Default Route Class Fallbacks Method Creating Persistent URL Parameters Handling Named Parameters in URLs Dispatcher Filters Request & Response Objects Request Request Parameters Query String Parameters0 码力 | 1244 页 | 1.05 MB | 1 年前3
CakePHP Cookbook 4.x
Disabling Generic Tables Routing RouterBuilder Quick Tour Connecting Routes Route Elements Reserved Route Elements Configuring Route Options Passing Parameters to Action Using Path Routing Using Named Routes SEO-Friendly Routing Matching Specific HTTP Methods Matching Specific Hostnames Routing File Extensions Route Scoped Middleware Grouping Middleware RESTful Routing Creating Nested Resource Routes Limiting Changing the Controller Actions Used Mapping Additional Resource Routes Prefixed Resource Routing Custom Route Classes for Resource Routes URL Inflection for Resource Routes Changing the Path Element Passed Arguments0 码力 | 1249 页 | 1.04 MB | 1 年前3
CakePHP Cookbook Documentation 5.x. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135 Route Scoped Middleware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 158 Custom Route Classes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . defined in the file name UsersController.php) is accessed from http://example.com/users. While you can route multiple word controllers in any way you like, the convention is that your URLs are lower- case and0 码力 | 848 页 | 2.53 MB | 1 年前3
CakePHP Cookbook 3.x
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 254 Custom Route Classes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . defined in the file name UsersController.php) is accessed from http://example.com/users. While you can route multiple word controllers in any way you like, the convention is that your URLs are lowercase and Guide 45 CakePHP Cookbook Documentation, Release 3.10 Routing • Cake\Routing\Route\EntityRoute was added. This route class makes building routes that need data from entities easier. See the Entity Routing0 码力 | 967 页 | 2.80 MB | 1 年前3
CakePHP Cookbook 4.x
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 203 Route Scoped Middleware . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 226 Custom Route Classes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . defined in the file name UsersController.php) is accessed from http://example.com/users. While you can route multiple word controllers in any way you like, the convention is that your URLs are lower- case and0 码力 | 967 页 | 2.88 MB | 1 年前3
CakePHP Cookbook 2.x
Passed Arguments Named Parameters Reverse Routing Redirect Routing Disabling the Default Routes Custom Route Classes Router API Sessions Session Configuration Built-in Session handlers & configuration Setting /app/Config/routes.php. You’ll want to comment out or remove the line that defines the default root route. It looks like this: Router::connect( '/', array('controller' => 'pages', 'action' => 'display' action of our PostsController. Note CakePHP also makes use of ‘reverse routing’. If, with the above route defined, you pass array('controller' => 'posts', 'action' => 'index') to a function expecting an array0 码力 | 1096 页 | 958.62 KB | 1 年前3
CakePHP Cookbook 2.x
/app/Config/routes.php. You’ll want to comment out or remove the line that defines the default root route. It looks like this: Blog Tutorial - Adding a layer 19 CakePHP Cookbook Documentation, Release 2 action of our PostsController. Note: CakePHP also makes use of ‘reverse routing’. If, with the above route defined, you pass array('controller' => 'posts', 'action' => 'index') to a function expecting an array or models. Although routes aren’t classes or files, they play a role in requests made to CakePHP. Route definitions tell CakePHP how to map URLs to controller actions. The default behavior assumes that0 码力 | 820 页 | 2.52 MB | 1 年前3
共 8 条
- 1













