[TYPO3-mvc] [Best practice] VH arguments?
Tim Schoch | GSTALTIG
tim.schoch at gstaltig.ch
Mon Mar 12 12:24:20 CET 2012
@core devs: I wanted to ask this question for some time, so here it is:
In some VH you use initializeArguments and in other you add as argument to the render() method.
Is there a reason in which case the one or other is the better one?
I personally would prefer to have them in initializeArguments as it makes extending core VHs less tedious.
And even more secure as my code won´t break when you add another argument to it.
Gruess Tim
GSTALTIG GMBH / www.gstaltig.ch
Sonnenhofstr. 13 / 6020 Emmenbrücke
tim at gstaltig.ch / 076 488 24 97
More information about the TYPO3-project-typo3v4mvc
mailing list