[TYPO3] t3lib_div::makeInstance does not support initialization parameters
Dmitry Dulepov [typo3]
dmitry at typo3.org
Mon Aug 18 18:48:10 CEST 2008
Hi!
Xavier Perseguers wrote:
> Does it mean that I should use the new keyword for such case? Or why
> does the framework force me to create a initialization function distinct
> from the constructor?
>
> I do not understand this...
$class = t3lib_div::makeInstanceClassName('tx_whatever');
$inst = new $class($param);
--
Dmitry Dulepov
TYPO3 Core team
My TYPO3 book: http://www.packtpub.com/typo3-extension-development/book
In the blog: http://typo3bloke.net/post-details/typo3_code_formatting_in_eclipse/
More information about the TYPO3-english
mailing list