CakePHP Cookbook 2.x
MVC Request in CakePHP The typical CakePHP request cycle starts with a user requesting a page or resource in your application. This request is first processed by a dispatcher which will select the correct normal object-oriented inheritance rules apply, CakePHP does a bit of extra work when it comes to special controller attributes. The components and helpers used by a controller are treated specially. In this case, array('Order.destination' => 'Old Towne Bakery'). If you want to use a different SQL operator between terms, supply them using the second parameter: /* Contents of $this->request->data array(0 码力 | 1096 页 | 958.62 KB | 1 年前3
CakePHP Cookbook 2.x
MVC Request in CakePHP The typical CakePHP request cycle starts with a user requesting a page or resource in your application. This request is first processed by a dispatcher which will select the correct this case, array('Order. destination' => 'Old Towne Bakery'). If you want to use a different SQL operator between terms, supply them using the second parameter: /* Contents of $this->request->data array( $this->Order->find('all', compact('conditions')); The third parameter allows you to tell CakePHP what SQL boolean operator to use between the find conditions. Strings like ‘AND’, ‘OR’ and ‘XOR’ are all valid values. Finally0 码力 | 820 页 | 2.52 MB | 1 年前3
CakePHP Cookbook Documentation 5.xCreating 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 Inflection Inflection for Resource Routes Changing the Path Element Passed Arguments Generating URLs RouterBuilder::url RouterBuilder::reverse Using Router::url() Using Router::reverse() Routing Arrays vs Request cycle works in CakePHP: The typical CakePHP request cycle starts with a user requesting a page or resource in your application. At a high level each request goes through the following steps: 1. The webserver0 码力 | 1080 页 | 939.39 KB | 1 年前3
CakePHP Cookbook 4.x
Creating 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 Inflection Inflection for Resource Routes Changing the Path Element Passed Arguments Generating URLs RouterBuilder::url RouterBuilder::reverse Using Router::url() Using Router::reverse() Routing Arrays vs Request cycle works in CakePHP: The typical CakePHP request cycle starts with a user requesting a page or resource in your application. At a high level each request goes through the following steps: 1. The webserver0 码力 | 1249 页 | 1.04 MB | 1 年前3
CakePHP Cookbook 3.x
Creating 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 Inflection Inflection for Resource Routes Changing the Path Element Passed Arguments Generating URLs Redirect Routing Entity Routing Custom Route Classes Default Route Class Fallbacks Method Creating Persistent cycle works in CakePHP: The typical CakePHP request cycle starts with a user requesting a page or resource in your application. At a high level each request goes through the following steps: 1. The webserver0 码力 | 1244 页 | 1.05 MB | 1 年前3
CakePHP Cookbook Documentation 5.xcycle works in CakePHP: The typical CakePHP request cycle starts with a user requesting a page or resource in your application. At a high level each request goes through the following steps: 1. The webserver pages, layouts, and view template files. • The resources folder has sub folder for various types of resource files. The locales sub folder stores language files for internationalization. • The tests folder finder can then be called as find('byCategoryOrUser', userId: $somevar). You can even include the special named arguments for setting query clauses. find('byCategoryOrUser', userId: $somevar, conditions:0 码力 | 848 页 | 2.53 MB | 1 年前3
CakePHP Cookbook 4.x
cycle works in CakePHP: The typical CakePHP request cycle starts with a user requesting a page or resource in your application. At a high level each request goes through the following steps: 1. The webserver pages, layouts, and view template files. • The resources folder has sub folder for various types of resource files. The locales sub folder stores language files for internationalization. • The tests folder Entity::_properties has been renamed to Entity::_fields. View • The _serialize, _jsonOptions and _jsonp special view variables of JsonView are now deprecated. Instead you should use viewBuilder()->setOption($optionName0 码力 | 967 页 | 2.88 MB | 1 年前3
CakePHP Cookbook 3.x
cycle works in CakePHP: The typical CakePHP request cycle starts with a user requesting a page or resource in your application. At a high level each request goes through the following steps: 1. The webserver Cake\Routing\RouteBuilder::resources() had the path option added. This option lets you make the resource path and controller name not match. • Cake\Routing\RouteBuilder now has methods to create routes Previously attachments would have defaulted to ‘application/octet-stream’. • CakePHP now uses the ... operator in place of call_user_func_array(). If you are passing associative arrays, you should update your0 码力 | 967 页 | 2.80 MB | 1 年前3
共 8 条
- 1













