-
Notifications
You must be signed in to change notification settings - Fork 174
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[FEATURE] Make it possible to assign variables to view #1199
base: typo3-v12
Are you sure you want to change the base?
[FEATURE] Make it possible to assign variables to view #1199
Conversation
In event FormControllerFormActionEvent, make it possible to assign variables to view. Resolves: in2code-de#1198
I think you're missing the step, where you get the event's $view back to the controller. I'd suggest just adding an array to the event for "additionalVariables" and assign those.
|
Objects should be automatically passed by reference, no? Unless there is a severe case of "Brett-vorm-Kopf" on my end. I admit, I did not test this yet. Changing to "Draft", will test and make change as you suggested, if necessary. |
I see. However, I'm still wondering if you actually need the whole ViewInterface, when you "just want to pass some variables" in this case. edit: No you're right, it's probably also more convenient if you can just use the interface methods |
32243c2
to
3721341
Compare
Looks good from reading. Need to test it, though. |
In event FormControllerFormActionEvent, make it possible to assign variables to view.
Resolves: #1198