< 0 码力 |
967 页 |
2.88 MB
| 1 年前 3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 513 Using Cache to Store Common Query Results . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 514 Using Groups . . . com/articles), CakePHP will call the index method of your ArticlesController. This method should query the model layer, and prepare a response by rendering a Template in the View. The code for that action | Title | Created | < 0 码力 |
848 页 |
2.53 MB
| 1 年前 3 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 641 Using Cache to Store Common Query Results . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 641 Using Groups . . . TableRegistry::get('Users') $users = TableRegistry::getTableLocator()->get('Users'); $query = $users->find(); foreach ($query as $row) { echo $row->username; } You may notice that we didn’t have to write any com/articles), CakePHP will call the index method of your ArticlesController. This method should query the model layer, and prepare a response by rendering a Template in the View. The code for that action 0 码力 |
967 页 |
2.80 MB
| 1 年前 3 assumptions that reduce the overhead of parsing incoming requests. Why is my query parameter missing from the req object? If a query param does not have a value, Falcon will by default ignore that parameter localhost:8000/things More Features Here is a more involved example that demonstrates reading headers and query parameters, handling errors, and working with request and response bodies. import json import logging interact with them directly. The Falcon framework contains extensive inline documentation that you can query using the above technique. The team has worked hard to optimize the docstrings for readability, so 0 码力 |
249 页 |
406.22 KB
| 1 年前 3 assumptions that reduce the overhead of parsing incoming requests. Why is my query parameter missing from the req object? If a query param does not have a value, Falcon will by default ignore that parameter localhost:8000/things More Features Here is a more involved example that demonstrates reading headers and query parameters, handling errors, and working with request and response bodies. import json import logging interact with them directly. The Falcon framework contains extensive inline documentation that you can query using the above technique. The team has worked hard to optimize the docstrings for readability, so 0 码力 |
312 页 |
368.58 KB
| 1 年前 3 assumptions that reduce the overhead of parsing incoming requests. Why is my query parameter missing from the req object? If a query param does not have a value, Falcon will by default ignore that parameter Picture First Steps Hosting Your App Creating Resources Request and Response Objects Serving Images Query Strings Introducing Hooks Error Handling What Now? Created using Sphinx 1.3.5. index modules | next localhost:8000/things More Features Here is a more involved example that demonstrates reading headers and query parameters, handling errors, and working with request and response bodies. import json import logging 0 码力 |
188 页 |
358.44 KB
| 1 年前 3 App() A More Complex Example Here is a more involved example that demonstrates reading headers and query parameters, handling errors, and working with request and response bodies. # Resources are represented interact with them directly. The Falcon framework contains extensive inline documentation that you can query using the above technique. Tip In addition to IPython [http://ipython.org/], the Python community from a set of standard methods. For HTTP, these are the familiar GET, POST, HEAD, etc. Clients can query a resource to discover which methods it supports. Note This is one of the key differences between 0 码力 |
1055 页 |
739.30 KB
| 1 年前 3
| |