Skip to content

Commit 436eb30

Browse files
Mario A. Alvarez Garciaweaverryan
Mario A. Alvarez Garcia
authored andcommitted
Changed view->set by view->vars
1 parent b5e26a6 commit 436eb30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cookbook/form/create_form_type_extension.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ it in the view::
239239
}
240240

241241
// set an "image_url" variable that will be available when rendering this field
242-
$view->set('image_url', $imageUrl);
242+
$view->vars['image_url'] = $imageUrl;
243243
}
244244
}
245245

0 commit comments

Comments
 (0)