Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 3a31aad

Browse filesBrowse files
committed
minor #10200 action_method is missing $task variable (TomasVotruba)
This PR was submitted for the 4.1 branch but it was merged into the 2.8 branch instead (closes #10200). Discussion ---------- 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. Commits ------- 5ada0ef action_method is missing $task variable
2 parents 217e429 + 5ada0ef commit 3a31aad
Copy full SHA for 3a31aad

File tree

Expand file treeCollapse file tree

1 file changed

+2
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+2
-0
lines changed

‎form/action_method.rst

Copy file name to clipboardExpand all lines: form/action_method.rst
+2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.