CakePHP Cookbook 2.x
Dispatcher Filters Configuring Filters Filter Classes Inline Filters Deployment Check your security Set document root Update core.php Improve your application’s performance Tutorials & Examples Blog Tutorial and uncaught exceptions that cache data cannot be written. Creating the Blog Database Next, let’s set up the underlying database for our blog. If you haven’t already done so, create an empty database for AppController { public $helpers = array('Html', 'Form'); public function index() { $this->set('posts', $this->Post->find('all')); } } By defining function index() in our PostsController, users0 码力 | 1096 页 | 958.62 KB | 1 年前3
CakePHP Cookbook 2.x
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 649 Set document root . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . Getting Started CakePHP Cookbook Documentation, Release 2.x Creating the Blog Database Next, let’s set up the underlying database for our blog. If you haven’t already done so, create an empty database for further information. 1. Make sure that an .htaccess override is allowed and that AllowOverride is set to All for the correct DocumentRoot. You should see something similar to: 4 Chapter 1. Getting Started0 码力 | 820 页 | 2.52 MB | 1 年前3
Falcon v3.0.0 Documentationinstall [uvicorn|daphne|hypercorn] Note: By default, the uvicorn package comes only with a minimal set of pure-Python dependencies. For CPython- based production deployments, you can install Uvicorn along running pytest: $ cd falcon $ pip install -r requirements/tests $ pytest tests Or, to run the default set of tests: $ pip install tox && tox Tip: See also the tox.ini file for a full list of available environments arbitrary values between middleware components, # hooks, and resources. resp.context.result = result resp.set_header('Powered-By', 'Falcon') resp.status = falcon.HTTP_200 @falcon.before(max_body(64 * 1024)) def0 码力 | 344 页 | 1.16 MB | 1 年前3
Falcon v3.0.1 Documentationinstall [uvicorn|daphne|hypercorn] Note: By default, the uvicorn package comes only with a minimal set of pure-Python dependencies. For CPython- based production deployments, you can install Uvicorn along running pytest: $ cd falcon $ pip install -r requirements/tests $ pytest tests Or, to run the default set of tests: $ pip install tox && tox Tip: See also the tox.ini file for a full list of available environments arbitrary values between middleware components, # hooks, and resources. resp.context.result = result resp.set_header('Powered-By', 'Falcon') resp.status = falcon.HTTP_200 @falcon.before(max_body(64 * 1024)) def0 码力 | 344 页 | 1.16 MB | 1 年前3
Falcon v3.0.0 Documentationinstall [uvicorn|daphne|hypercorn] Note By default, the uvicorn package comes only with a minimal set of pure-Python dependencies. For CPython-based production deployments, you can install Uvicorn along running pytest: $ cd falcon $ pip install -r requirements/tests $ pytest tests Or, to run the default set of tests: $ pip install tox && tox Tip See also the tox.ini [https://github.com/falconry/falcon/blob/master/tox middleware components, # hooks, and resources. resp.context.result = result resp.set_header('Powered-By', 'Falcon') resp.status = falcon.HTTP_200 @falcon.before(max_body(640 码力 | 1055 页 | 739.30 KB | 1 年前3
Falcon v3.0.1 Documentationinstall [uvicorn|daphne|hypercorn] Note By default, the uvicorn package comes only with a minimal set of pure-Python dependencies. For CPython-based production deployments, you can install Uvicorn along running pytest: $ cd falcon $ pip install -r requirements/tests $ pytest tests Or, to run the default set of tests: $ pip install tox && tox Tip See also the tox.ini [https://github.com/falconry/falcon/blob/master/tox middleware components, # hooks, and resources. resp.context.result = result resp.set_header('Powered-By', 'Falcon') resp.status = falcon.HTTP_200 @falcon.before(max_body(640 码力 | 1058 页 | 741.59 KB | 1 年前3
Falcon v3.0.0-b2 Documentationinstall [uvicorn|daphne|hypercorn] Note: By default, the uvicorn package comes only with a minimal set of pure-Python dependencies. For CPython- based production deployments, you can install Uvicorn along running pytest: $ cd falcon $ pip install -r requirements/tests $ pytest tests Or, to run the default set of tests: $ pip install tox && tox Tip: See also the tox.ini file for a full list of available environments arbitrary values between middleware components, # hooks, and resources. resp.context.result = result resp.set_header('Powered-By', 'Falcon') resp.status = falcon.HTTP_200 @falcon.before(max_body(64 * 1024)) def0 码力 | 340 页 | 1.15 MB | 1 年前3
Falcon v3.0.0-b1 DocumentationRelease 3.0.0b1 $ cd falcon $ pip install -r requirements/tests $ pytest tests Or, to run the default set of tests: $ pip install tox && tox Tip: See also the tox.ini file for a full list of available environments arbitrary values between middleware components, # hooks, and resources. resp.context.result = result resp.set_header('Powered-By', 'Falcon') resp.status = falcon.HTTP_200 @falcon.before(max_body(64 * 1024)) def add_sink(sink, r'/search/(?Pddg|y)\Z') # Useful for debugging problems in your API; works with pdb.set_trace(). You # can also use Gunicorn to host your app. Gunicorn can be configured to # auto-restart 0 码力 | 338 页 | 1.14 MB | 1 年前3
Falcon v3.0.0-b2 Documentationinstall [uvicorn|daphne|hypercorn] Note By default, the uvicorn package comes only with a minimal set of pure-Python dependencies. For CPython-based production deployments, you can install Uvicorn along running pytest: $ cd falcon $ pip install -r requirements/tests $ pytest tests Or, to run the default set of tests: $ pip install tox && tox Tip See also the tox.ini [https://github.com/falconry/falcon/blob/master/tox middleware components, # hooks, and resources. resp.context.result = result resp.set_header('Powered-By', 'Falcon') resp.status = falcon.HTTP_200 @falcon.before(max_body(640 码力 | 1041 页 | 730.21 KB | 1 年前3
Falcon v3.0.0-b1 Documentationrunning pytest: $ cd falcon $ pip install -r requirements/tests $ pytest tests Or, to run the default set of tests: $ pip install tox && tox Tip See also the tox.ini [https://github.com/falconry/falcon/blob/master/tox middleware components, # hooks, and resources. resp.context.result = result resp.set_header('Powered-By', 'Falcon') resp.status = falcon.HTTP_200 @falcon.before(max_body(64 add_sink(sink, r'/search/(?Pddg|y)\Z') # Useful for debugging problems in your API; works with pdb.set_trace(). You # can also use Gunicorn to host your app. Gunicorn can be configured to # auto-restart 0 码力 | 1028 页 | 725.86 KB | 1 年前3
共 77 条
- 1
- 2
- 3
- 4
- 5
- 6
- 8













