CakePHP Cookbook Documentation 5.xText::tokenize Text::parseFileSize() Formatting Strings Text::insert Text::cleanInsert Wrapping Text Text::wrap Text::wrapBlock Highlighting Substrings Text::highlight() Removing Links Text::stripLinks() Truncating cannot be accessed 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 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 dashed using the0 码力 | 1080 页 | 939.39 KB | 1 年前3
 CakePHP Cookbook Documentation 5.xcannot be accessed 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 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 and dashed using user_favorite_pages respectively. Table name whose name contains multiple words should only pluralize the last word, for example, menu_links. Column names with two or more words are underscored, for example, first_name0 码力 | 848 页 | 2.53 MB | 1 年前3
 CakePHP Cookbook 4.x
Text::tokenize Text::parseFileSize() Formatting Strings Text::insert Text::cleanInsert Wrapping Text Text::wrap Text::wrapBlock Highlighting Substrings Text::highlight() Removing Links Text::stripLinks() Truncating cannot be accessed 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 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 dashed using the0 码力 | 1249 页 | 1.04 MB | 1 年前3
 CakePHP Cookbook 3.x
cannot be accessed 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 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 dashed using the for more information. Routing variables can now use {var} style placeholders. This style allows mid- word variables to be defined. You cannot combine {var} placeholders with :var style placeholders. Router::routeExists()0 码力 | 1244 页 | 1.05 MB | 1 年前3
 CakePHP Cookbook 3.x
cannot be accessed 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 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 dashed using the more information. • Routing variables can now use {var} style placeholders. This style allows mid-word variables to be defined. You cannot combine {var} placeholders with :var style placeholders. • R0 码力 | 967 页 | 2.80 MB | 1 年前3
 CakePHP Cookbook 4.x
cannot be accessed 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 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 and dashed using user_favorite_pages respectively. Table name whose name contains multiple words should only pluralize the last word, for example, menu_links. Column names with two or more words are underscored, for example, first_name0 码力 | 967 页 | 2.88 MB | 1 年前3
 CakePHP Cookbook 2.x
methods cannot be accessed. URL Considerations for Controller Names As you’ve just seen, single word controllers map easily to a simple lower case URL path. For example, ApplesController (which would defined in the file name ‘ApplesController.php’) is accessed from http://example.com/apples. Multiple word controllers can be any ‘inflected’ form which equals the controller name so: /redApples /RedApples difference - if you are using named or passed parameters, you must put them in a second array and wrap them with the correct key. This is because requestAction() merges the named args array (requestAction’s0 码力 | 1096 页 | 958.62 KB | 1 年前3
 CakePHP Cookbook 2.x
Cookbook Documentation, Release 2.x URL Considerations for Controller Names As you’ve just seen, single word controllers map easily to a simple lower case URL path. For example, ApplesController (which would defined in the file name ‘ApplesController.php’) is accessed from http://example. com/apples. Multiple word controllers can be any ‘inflected’ form which equals the controller name so: • /redApples • /RedApples difference - if you are using named or passed parameters, you must put them in a second array and wrap them with the correct key. This is because requestAction() merges the named args array (requestAction’s0 码力 | 820 页 | 2.52 MB | 1 年前3
 Falcon v0.2.0 Documentationcloud services. We would love to have you join us and share your ideas. Please help us spread the word and grow the community! IRC While you experiment with Falcon and work to familiarize yourself with so you can use the standard pattern outlined in PEP-3333. In your main “app” file, you would simply wrap your api instance with a middleware app. For example: import my_restful_service import some_middleware FALSE_STRINGS = ('false', 'False', 'no') WSGI_CONTENT_HEADERS = ('CONTENT_TYPE', 'CONTENT_LENGTH') _maybe_wrap_wsgi_stream = True [docs]class Request(object): """Represents a client's HTTP request. Note:0 码力 | 188 页 | 358.44 KB | 1 年前3
 Falcon v3.0.0-b2 Documentationfilesystem. For our convenience, pytest offers several temporary directory utilities out of the box. Let’s wrap its tmpdir_factory to create a simple storage_path fixture that we’ll share among all tests in the headers, exc_info) return self._app(environ, start_response_wrapper) We can now use this middleware to wrap a Falcon app: import falcon # Import or define CustomHeadersMiddleware from the above snippet.. so you can use the standard pattern outlined in PEP-3333. In your main “app” file, you would simply wrap your api instance with a middleware app. For example: import my_restful_service import some_middleware0 码力 | 340 页 | 1.15 MB | 1 年前3
共 62 条
- 1
 - 2
 - 3
 - 4
 - 5
 - 6
 - 7
 













