File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -79,7 +79,7 @@ the data is stored in a POST parameter with the name of the form::
79
79
// form setup...
80
80
81
81
if ('POST' === $this['request']->getMethod()) {
82
- $form->bind($this['request']->request-> get('customer'));
82
+ $form->bind($this['request']->get('customer'));
83
83
84
84
if ($form->isValid()) {
85
85
// save $customer object and redirect
@@ -253,7 +253,7 @@ Let's create a simple ``Registration`` class for this purpose::
253
253
/** @Validation({ @AssertTrue(message="Please accept the terms and conditions") }) */
254
254
public $termsAccepted = false;
255
255
256
- public process()
256
+ public function process()
257
257
{
258
258
// save user, send emails etc.
259
259
}
@@ -277,7 +277,7 @@ Now we can easily adapt the form in the controller::
277
277
$form->add($group);
278
278
279
279
if ('POST' === $this['request']->getMethod()) {
280
- $form->bind($this['request']->request-> get('customer '));
280
+ $form->bind($this['request']->get('registration '));
281
281
282
282
if ($form->isValid()) {
283
283
$registration->process();
You can’t perform that action at this time.
0 commit comments