Falcon v1.0.0 Documentationmeaning (among # other things) that you think in terms of resources and state # transitions, which map to HTTP verbs. class ThingsResource(object): def on_get(self, req, resp): """Handles GET designed to be as intuitive as possible for anyone who understands the basics of HTTP. In Falcon, you map incoming requests to things called “Resources”. A Resource is just a regular Python class that includes exception falcon.HTTPNotFound(**kwargs)[source] 404 Not Found. Use this when the URL path does not map to an existing resource, or you do not wish to disclose exactly why a request was refused. exception0 码力 | 249 页 | 406.22 KB | 1 年前3
CakePHP Cookbook Documentation 5.xPlugins Components, Helpers and Behaviors Commands Testing your Plugin Publishing your Plugin Plugin Map File Manage Your Plugins using Mixer REST Getting Started Encoding Response Data Parsing Request Files Collections Collection Quick Example List of Methods Iterating Collection::each() Collection::map() Collection::extract() Collection::combine() Collection::stopWhen() Collection::unfold() Collection::chunk() with routing. URL Considerations for Controller Names As you’ve just seen, single word controllers map to a simple lower case URL path. For example, UsersController (which would be defined in the file name0 码力 | 1080 页 | 939.39 KB | 1 年前3
CakePHP Cookbook 3.x
Plugins Components, Helpers and Behaviors Commands Testing your Plugin Publishing your Plugin Plugin Map File Manage Your Plugins using Mixer REST The Simple Setup Accepting Input in Other Formats RESTful with routing. URL Considerations for Controller Names As you’ve just seen, single word controllers map to a simple lower case URL path. For example, UsersController (which would be defined in the file name Cake\Database\Type::map() is deprecated. Use getMap() instead. Cake\Database\Type::map() to set complete types map is deprecated. Use setMap() instead. Passing $className as object to Cake\Database\Type::map() is deprecated0 码力 | 1244 页 | 1.05 MB | 1 年前3
Falcon v1.0.0 Documentationmeaning (among # other things) that you think in terms of resources and state # transitions, which map to HTTP verbs. class ThingsResource(object): def on_get(self, req, resp): """Handles GET designed to be as intuitive as possible for anyone who understands the basics of HTTP. In Falcon, you map incoming requests to things called “Resources”. A Resource is just a regular Python class that includes method_map, resource): """Adds a route between URI path template and resource. Args: uri_template (str): The URI template to add. method_map (dict): A method map obtained0 码力 | 312 页 | 368.58 KB | 1 年前3
CakePHP Cookbook 4.x
Plugins Components, Helpers and Behaviors Commands Testing your Plugin Publishing your Plugin Plugin Map File Manage Your Plugins using Mixer REST The Simple Setup Accepting Input in Other Formats RESTful Files Collections Collection Quick Example List of Methods Iterating Collection::each() Collection::map() Collection::extract() Collection::combine() Collection::stopWhen() Collection::unfold() Collection::chunk() with routing. URL Considerations for Controller Names As you’ve just seen, single word controllers map to a simple lower case URL path. For example, UsersController (which would be defined in the file name0 码力 | 1249 页 | 1.04 MB | 1 年前3
CakePHP Cookbook 3.x
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 770 Plugin Map File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . with routing. URL Considerations for Controller Names As you’ve just seen, single word controllers map to a simple lower case URL path. For example, UsersController (which would be defined in the file name Cake\Database\Type::map() is deprecated. Use getMap() instead. • Cake\Database\Type::map() to set complete types map is deprecated. Use setMap() instead. • Passing $className as object to Cake\Database\Type::map() is0 码力 | 967 页 | 2.80 MB | 1 年前3
CakePHP Cookbook Documentation 5.x. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 649 Plugin Map File . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . with routing. URL Considerations for Controller Names As you’ve just seen, single word controllers map to a simple lower case URL path. For example, UsersController (which would be defined in the file name ; } // Other code } protected function _buildTags($tagString) { // Trim tags $newTags = array_map('trim', explode(',', $tagString)); // Remove all empty tags $newTags = array_filter($newTags); // Reduce0 码力 | 848 页 | 2.53 MB | 1 年前3
Falcon v3.0.0 Documentationmeaning (among # other things) that you think in terms of resources and state # transitions, which map to HTTP verbs. class ThingsResource: def on_get(self, req, resp): """Handles GET requests""" meaning (among # other things) that you think in terms of resources and state # transitions, which map to HTTP verbs. class ThingsResource: async def on_get(self, req, resp): """Handles GET requests""" two classes instead of one may lead to a cleaner design. (See also: What is the recommended way to map related routes to resource classes?) Note In this example, we serve the image by simply assigning0 码力 | 1055 页 | 739.30 KB | 1 年前3
Falcon v3.0.1 Documentationmeaning (among # other things) that you think in terms of resources and state # transitions, which map to HTTP verbs. class ThingsResource: def on_get(self, req, resp): """Handles GET requests""" meaning (among # other things) that you think in terms of resources and state # transitions, which map to HTTP verbs. class ThingsResource: async def on_get(self, req, resp): """Handles GET requests""" two classes instead of one may lead to a cleaner design. (See also: What is the recommended way to map related routes to resource classes?) Note In this example, we serve the image by simply assigning0 码力 | 1058 页 | 741.59 KB | 1 年前3
Falcon v3.0.0-b2 Documentationmeaning (among # other things) that you think in terms of resources and state # transitions, which map to HTTP verbs. class ThingsResource: def on_get(self, req, resp): """Handles GET requests""" meaning (among # other things) that you think in terms of resources and state # transitions, which map to HTTP verbs. class ThingsResource: async def on_get(self, req, resp): """Handles GET requests""" two classes instead of one may lead to a cleaner design. (See also: What is the recommended way to map related routes to resource classes?) Note In this example, we serve the image by simply assigning0 码力 | 1041 页 | 730.21 KB | 1 年前3
共 66 条
- 1
- 2
- 3
- 4
- 5
- 6
- 7













