mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
Update form.md
Under the heading ...THE FORM.... Instantiating a form.... $controller.. replace and to an.
This commit is contained in:
parent
608745ac25
commit
61689bca8b
@ -95,7 +95,7 @@ Creating a form is a matter of defining a method to represent that form. This
|
||||
method should return a form object. The constructor takes the following
|
||||
arguments:
|
||||
|
||||
* `$controller`: This must be and instance of the controller that contains the form, often `$this`.
|
||||
* `$controller`: This must be an instance of the controller that contains the form, often `$this`.
|
||||
* `$name`: This must be the name of the method on that controller that is called to return the form. The first two
|
||||
fields allow the form object to be re-created after submission. **It's vital that they are properly set - if you ever
|
||||
have problems with form action handler not working, check that these values are correct.**
|
||||
|
Loading…
x
Reference in New Issue
Block a user