Commit fa45d9a1 authored by Fabien Potencier's avatar Fabien Potencier

fixed the form example to not use deprecated methods

parent 03a326b3
...@@ -110,17 +110,15 @@ example:: ...@@ -110,17 +110,15 @@ example::
)) ))
->getForm(); ->getForm();
if ('POST' == $request->getMethod()) { $form->handleRequest($request);
$form->bind($request);
if ($form->isValid()) { if ($form->isValid()) {
$data = $form->getData(); $data = $form->getData();
// do something with the data // do something with the data
// redirect somewhere // redirect somewhere
return $app->redirect('...'); return $app->redirect('...');
}
} }
// display the form // display the form
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment