diff --git a/en/views/helpers/form.rst b/en/views/helpers/form.rst index 8ca594fae2..406ce14adf 100644 --- a/en/views/helpers/form.rst +++ b/en/views/helpers/form.rst @@ -16,39 +16,53 @@ Starting a Form .. php:method:: create(mixed $context = null, array $options = []) +* ``$model`` - The context for which the form is being defined. Can be an ORM + entity, ORM resultset, array of metadata or ``false/null`` (to make a + model-less form). +* ``$options`` - An array of options and/or HTML attributes. + The first method you'll need to use in order to take advantage of the FormHelper is ``create()``. This method outputs an opening form tag. All parameters are optional. If ``create()`` is called with no parameters supplied, it assumes you are building a form that submits to the current controller, via the current URL. The default method for form submission is POST. -If you were to call ``create()`` inside the view for UsersController::add(), you -would see something like the following output in the rendered view: +If you were to call ``create()`` inside the view for ``UsersController::add()``, +you would see something like the following output in the rendered view: .. code-block:: html