Skip to content

Commit 6da16ba

Browse files
pborrelifabpot
authored andcommitted
Fixed typos
1 parent 0374314 commit 6da16ba

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

guides/forms.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ the data is stored in a POST parameter with the name of the form::
7979
// form setup...
8080

8181
if ('POST' === $this['request']->getMethod()) {
82-
$form->bind($this['request']->request->get('customer'));
82+
$form->bind($this['request']->get('customer'));
8383

8484
if ($form->isValid()) {
8585
// save $customer object and redirect
@@ -253,7 +253,7 @@ Let's create a simple ``Registration`` class for this purpose::
253253
/** @Validation({ @AssertTrue(message="Please accept the terms and conditions") }) */
254254
public $termsAccepted = false;
255255

256-
public process()
256+
public function process()
257257
{
258258
// save user, send emails etc.
259259
}
@@ -277,7 +277,7 @@ Now we can easily adapt the form in the controller::
277277
$form->add($group);
278278

279279
if ('POST' === $this['request']->getMethod()) {
280-
$form->bind($this['request']->request->get('customer'));
280+
$form->bind($this['request']->get('registration'));
281281

282282
if ($form->isValid()) {
283283
$registration->process();

0 commit comments

Comments
 (0)