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
Learning Laravel41 Basic Controllers 41 Controller Middleware 41 Resource Controller 42 Example of how a Resource Controller look 42 Actions Handled By Resource Controller 44 Chapter 12: Cron basics 45 Introduction Using Gates Gates are closures that determine if a user is allowed to perform a certain action on a resource. Gates are typically defined in the boot method of AuthServiceProvider and succinctly named to for you. Policies Policies are classes that help you organise authorisation logic around a model resource. Using our previous example, we might have a ContentPolicy that manages user access to the Content0 码力 | 216 页 | 1.58 MB | 1 年前3
Falcon v3.0.0 DocumentationHandling What Now? Tutorial (ASGI) First Steps Hosting Our App Configuration Image Store Images Resource(s) Running Our Application Dynamic Thumbnails Caching Responses Testing Our Application Code Coverage Handling What Now? Tutorial (ASGI) First Steps Hosting Our App Configuration Image Store Images Resource(s) Running Our Application Dynamic Thumbnails Caching Responses Testing Our Application Code Coverage description=description) def process_response(self, req, resp, resource, req_succeeded): if not hasattr(resp.context, 'result'): return resp.text0 码力 | 1055 页 | 739.30 KB | 1 年前3
共 76 条
- 1
- 2
- 3
- 4
- 5
- 6
- 8













