CakePHP Cookbook 2.x
Standards Language Adding New Features Indentation Line Length Control Structures Comparison Function Calls Method Definition Method Chaining DocBlocks Including Files PHP Tags Naming Convention Backwards array('Html', 'Form'); } Now, let’s add an action to our controller. Actions often represent a single function or interface in an application. For example, when users request www.example.com/posts/index (which public $helpers = array('Html', 'Form'); public function index() { $this->set('posts', $this->Post->find('all')); } } By defining function index() in our PostsController, users can access0 码力 | 1096 页 | 958.62 KB | 1 年前3Falcon v3.0.0 Documentation
setting additional Clang C compiler flags as follows: $ export CFLAGS="-Qunused-arguments -Wno-unused-function" Dependencies Falcon does not require the installation of any other packages, although if Cython import falcon In [2]: falcon.App.__call__? Alternatively, you can use the standard Python help() function: In [3]: help(falcon.App.__call__) Note the method signature. env and start_response are standard client(): return testing.TestClient(app) # pytest will inject the object returned by the "client" function # as an additional parameter. def test_list_images(client): doc = { 'images': [0 码力 | 1055 页 | 739.30 KB | 1 年前3Falcon v3.0.1 Documentation
setting additional Clang C compiler flags as follows: $ export CFLAGS="-Qunused-arguments -Wno-unused-function" Dependencies Falcon does not require the installation of any other packages, although if Cython import falcon In [2]: falcon.App.__call__? Alternatively, you can use the standard Python help() function: In [3]: help(falcon.App.__call__) Note the method signature. env and start_response are standard client(): return testing.TestClient(app) # pytest will inject the object returned by the "client" function # as an additional parameter. def test_list_images(client): doc = { 'images': [0 码力 | 1058 页 | 741.59 KB | 1 年前3Falcon v3.0.0-b2 Documentation
setting additional Clang C compiler flags as follows: $ export CFLAGS="-Qunused-arguments -Wno-unused-function" Dependencies Falcon does not require the installation of any other packages, although if Cython import falcon In [2]: falcon.App.__call__? Alternatively, you can use the standard Python help() function: In [3]: help(falcon.App.__call__) Note the method signature. env and start_response are standard client(): return testing.TestClient(app) # pytest will inject the object returned by the "client" function # as an additional parameter. def test_list_images(client): doc = { 'images': [0 码力 | 1041 页 | 730.21 KB | 1 年前3Falcon v3.0.0-b1 Documentation
setting additional Clang C compiler flags as follows: $ export CFLAGS="-Qunused-arguments -Wno-unused-function" Dependencies Falcon does not require the installation of any other packages, although if Cython import falcon In [2]: falcon.App.__call__? Alternatively, you can use the standard Python help() function: In [3]: help(falcon.App.__call__) Note the method signature. env and start_response are standard client(): return testing.TestClient(app) # pytest will inject the object returned by the "client" function # as an additional parameter. def test_list_images(client): doc = { 'images': [0 码力 | 1028 页 | 725.86 KB | 1 年前3CakePHP Cookbook 2.x
array('Html', 'Form'); } Now, let’s add an action to our controller. Actions often represent a single function or interface in an application. For example, when users request www.example.com/posts/index (which AppController { public $helpers = array('Html', 'Form'); public function index() { $this->set('posts', $this->Post->find('all')); } } By defining function index() in our PostsController, users can access the logic logic there by requesting www.example.com/posts/index. Similarly, if we were to define a function called foobar(), users would be able to access that at www.example.com/posts/foobar. Warning: You may0 码力 | 820 页 | 2.52 MB | 1 年前3CakePHP Cookbook Documentation 5.x
Standards Adding New Features IDE Setup Indentation Line Length Control Structures Comparison Function Calls Method Definition Bail Early Method Chaining Commenting Code Including Files PHP Tags Naming Anonymous Listeners Interacting with Existing Listeners Establishing Priorities Getting Event Data as Function Parameters Dispatching Events Stopping Events Getting Event Results Removing Callbacks and Listeners rendering process to the View layer. An example of a user registration controller would be: public function add() { $user = $this->Users->newEmptyEntity(); if ($this->request->is('post')) {0 码力 | 1080 页 | 939.39 KB | 1 年前3Falcon v3.0.0 Documentation
User Guide 13 Falcon Documentation, Release 3.0.0 $ export CFLAGS="-Qunused-arguments -Wno-unused-function" Dependencies Falcon does not require the installation of any other packages, although if Cython import falcon In [2]: falcon.App.__call__? Alternatively, you can use the standard Python help() function: In [3]: help(falcon.App.__call__) Note the method signature. env and start_response are standard client(): return testing.TestClient(app) # pytest will inject the object returned by the "client" function # as an additional parameter. def test_list_images(client): doc = { 'images': [ { 'href': '/i0 码力 | 344 页 | 1.16 MB | 1 年前3Falcon v3.0.1 Documentation
User Guide 13 Falcon Documentation, Release 3.0.1 $ export CFLAGS="-Qunused-arguments -Wno-unused-function" Dependencies Falcon does not require the installation of any other packages, although if Cython import falcon In [2]: falcon.App.__call__? Alternatively, you can use the standard Python help() function: In [3]: help(falcon.App.__call__) Note the method signature. env and start_response are standard client(): return testing.TestClient(app) # pytest will inject the object returned by the "client" function # as an additional parameter. def test_list_images(client): doc = { 'images': [ { 'href': '/i0 码力 | 344 页 | 1.16 MB | 1 年前3Falcon v3.0.0-b2 Documentation
Guide 13 Falcon Documentation, Release 3.0.0b2 $ export CFLAGS="-Qunused-arguments -Wno-unused-function" Dependencies Falcon does not require the installation of any other packages, although if Cython import falcon In [2]: falcon.App.__call__? Alternatively, you can use the standard Python help() function: In [3]: help(falcon.App.__call__) Note the method signature. env and start_response are standard client(): return testing.TestClient(app) # pytest will inject the object returned by the "client" function # as an additional parameter. def test_list_images(client): doc = { 'images': [ { 'href': '/i0 码力 | 340 页 | 1.15 MB | 1 年前3
共 78 条
- 1
- 2
- 3
- 4
- 5
- 6
- 8