Skip to content

Commit 5ada0ef

Browse files
Tomáš Votrubaxabbuh
Tomáš Votruba
authored andcommitted
action_method is missing $task variable
It's not clear from the docs, but user has to first create the `$task` variable. In the second example bellow it's more clear thanks to `// ...`. This makes it a bit more explicit here as well.
1 parent 217e429 commit 5ada0ef

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

form/action_method.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,8 @@ form, you can use ``setAction()`` and ``setMethod()``:
2727
{
2828
public function newAction()
2929
{
30+
// ...
31+
3032
$form = $this->createFormBuilder($task)
3133
->setAction($this->generateUrl('target_route'))
3234
->setMethod('GET')

0 commit comments

Comments
 (0)