[TYPO3-ect] lib/div: some common initialization before any action
Elmar HInz
elmar.hinz at team.MINUS.red.DOT.net
Mon Mar 26 12:34:44 CEST 2007
> Elmar, the problem with the full "object orientation" is not possible
> with "t3lib_div::makeInstance", since you cannot pass the newly created
> object any parameters. This is why you sometimes need some kind of
For parameters there is makeInstanceClassName:
$className = tx_div::makeInstanceClassName('tx_xxxx');
$object = new $className($many, $lucky, $parameters);
see also:
t3lib_div::makeInstanceClassName
> It would be nice to separate the creation of the object from its later
> use (main()). Having a init() after setting every needed stuff seems to
> be a pragmatic way of doing that, while keeping the current
> makeInstance() usage.
Got the message.
Elmar
More information about the TYPO3-team-extension-coordination
mailing list