CakePHP Cookbook Documentation 5.xConnecting Routes Route Elements Reserved Route Elements Configuring Route Options Passing Parameters to Action Using Path Routing Using Named Routes Prefix Routing Creating Links to Prefix Routes Plugin Plugin Routing Creating Links to Plugin Routes SEO-Friendly Routing Matching Specific HTTP Methods Matching Specific Hostnames Routing File Extensions Route Scoped Middleware Grouping Middleware RESTful Routing Nested Resource Routes Limiting the Routes Created Changing the Controller Actions Used Mapping Additional Resource Routes Prefixed Resource Routing Custom Route Classes for Resource Routes URL Inflection0 码力 | 1080 页 | 939.39 KB | 1 年前3
CakePHP Cookbook 3.x
Tour Connecting Routes Route Elements Reserved Route Elements Configuring Route Options Passing Parameters to Action Using Named Routes Prefix Routing Creating Links to Prefix Routes Plugin Routing Creating Creating Links to Plugin Routes SEO-Friendly Routing Matching Specific HTTP Methods Matching Specific Hostnames Routing File Extensions Connecting Scoped Middleware Grouping Middleware RESTful Routing Nested Resource Routes Limiting the Routes Created Changing the Controller Actions Used Mapping Additional Resource Routes Prefixed Resource Routing Custom Route Classes for Resource Routes URL Inflection0 码力 | 1244 页 | 1.05 MB | 1 年前3
CakePHP Cookbook 4.x
Connecting Routes Route Elements Reserved Route Elements Configuring Route Options Passing Parameters to Action Using Path Routing Using Named Routes Prefix Routing Creating Links to Prefix Routes Plugin Plugin Routing Creating Links to Plugin Routes SEO-Friendly Routing Matching Specific HTTP Methods Matching Specific Hostnames Routing File Extensions Route Scoped Middleware Grouping Middleware RESTful Routing Nested Resource Routes Limiting the Routes Created Changing the Controller Actions Used Mapping Additional Resource Routes Prefixed Resource Routing Custom Route Classes for Resource Routes URL Inflection0 码力 | 1249 页 | 1.04 MB | 1 年前3
CakePHP Cookbook Documentation 5.x. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 133 Connecting Routes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 135 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 642 Plugin Routes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 681 Loading Routes in Tests . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .0 码力 | 848 页 | 2.53 MB | 1 年前3
CakePHP Cookbook 3.x
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 231 Connecting Routes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 233 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 763 Plugin Routes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 'actionName' // camelBacked ] For more information on CakePHP URLs and parameter handling, see Connecting Routes. File and Class Name Conventions In general, filenames match the class names, and follow the PSR-40 码力 | 967 页 | 2.80 MB | 1 年前3
CakePHP Cookbook 4.x
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 201 Connecting Routes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 203 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 744 Plugin Routes . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 783 Loading Routes in Tests . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .0 码力 | 967 页 | 2.88 MB | 1 年前3
CakePHP Cookbook 2.x
a Posts Controller Creating Post Views Adding Posts Data Validation Editing Posts Deleting Posts Routes Conclusion Additional Reading Installation Requirements License Downloading CakePHP Permissions Bootstrapping CakePHP Routing Routes Configuration Default Routing Connecting Routes Passed Arguments Named Parameters Reverse Routing Redirect Routing Disabling the Default Routes Custom Route Classes Router with Jenkins REST The Simple Setup Accepting Input in Other Formats Modifying the default REST routes Custom REST Routing Dispatcher Filters Configuring Filters Filter Classes Inline Filters Deployment0 码力 | 1096 页 | 958.62 KB | 1 年前3
CakePHP Cookbook 2.x
names, etc.) and create readable, understand- able action names. You can map URLs to your code using “routes” covered later on. The single instruction in the action uses set() to pass data from the controller is recommended that you use the array format. This is explained in more detail in the section on Routes. Using the array format for URLs allows you to take advantage of CakePHP’s re- verse routing capabilities FormHelper to prompt the user with a JavaScript confirmation dialog before they attempt to delete a post. Routes For some, CakePHP’s default routing works well enough. Developers who are sensitive to user-friendliness0 码力 | 820 页 | 2.52 MB | 1 年前3
共 8 条
- 1













