I have a form, and I want to pass it one parameter which must use to fill a widget.
I pass the parameter in my url :
url_for('myModule/new?parameter='.$myParam)
I have tried to take the parameter in my action and display it in my tamplate, but it doesn’t work.
Action :
$this->param = $request->getParameter('parameter');
Template :
echo param;
But I can’t recover it in my form.
How can I do this ?
If the parameter is an attribute of the object, you can do :