I wanted to pass a variable from a controller to the form. How can this be implemented? Can anyone please help me on this issue.
Thank you.
I wanted to pass a variable from a controller to the form. How can this be implemented? Can anyone please help me on this issue.
Thank you.
In the controller method of your application. addMultiOptions($options);
In the form script of your application.
when you create the form you can add a custom function
from your controller you can call that function and "edit" or "do what you want" with the form
Just a live example:
Then in you controller you can just pass necessary vars as config into form constructor: