@@ -40,23 +40,21 @@ a following section. The built-in providers map to the following values of
4040``$context ``:
4141
4242* An ``Entity `` instance or an iterator will map to
43- `EntityContext <https://api.cakephp.org/3.x/class-Cake.View.Form.EntityContext.html >`_;
43+ `EntityContext
44+ <https://github.com/cakephp/cakephp/tree/master/src/View/Form/EntityContext.php> `_;
4445 this context class allows FormHelper to work with results from the
4546 built-in ORM.
4647
4748* An array containing the ``'schema' `` key, will map to
48- `ArrayContext <https://api. cakephp.org/3.x/class-Cake. View. Form. ArrayContext.html >`_
49+ `ArrayContext <https://github.com/ cakephp/cakephp/tree/master/src/ View/ Form/ ArrayContext.php >`_
4950 which allows you to create simple data structures to build forms against.
5051
5152* ``null `` and ``false `` will map to
52- `NullContext <https://api. cakephp.org/3.x/class-Cake. View. Form. NullContext.html >`_;
53+ `NullContext <https://github.com/ cakephp/cakephp/tree/master/src/ View/ Form/ NullContext.php >`_;
5354 this context class
5455 simply satisfies the interface FormHelper requires. This context is useful if
5556 you want to build a short form that doesn't require ORM persistence.
5657
57- All context classes also have access to the request data, making it simpler to
58- build forms.
59-
6058Once a form has been created with a context, all controls you create will use the
6159active context. In the case of an ORM backed form, FormHelper can access
6260associated data, validation errors and schema metadata. You can close the active
@@ -177,7 +175,7 @@ contexts, such as ``EntityContext``, will fetch data from ``$request->getData()`
177175or from the current entity.
178176
179177If however, you are building a form that needs to read from the query string,
180- you can use ``valueSource () `` to change where ``FormHelper `` reads data input
178+ you can use ``setValuesSource () `` to change where ``FormHelper `` reads data input
181179data from::
182180
183181 // Prioritize query string over context:
@@ -201,7 +199,8 @@ The supported sources are ``context``, ``data`` and ``query``. You can use one
201199or more sources. Any widgets generated by ``FormHelper `` will gather their
202200values from the sources, in the order you setup.
203201
204- The value sources will be reset to the default (``['context'] ``) when ``end() ``
202+ The value sources will be reset to the default (``['data', 'context'] ``) when
203+ ``end() ``
205204is called.
206205
207206Changing the HTTP Method for a Form
0 commit comments