[Typo3-dev] singletons instead of pre-loaded objects

Wolfgang Klinger wolfgang at stufenlos.net
Mon Aug 9 18:25:52 CEST 2004


 *hiya!*

 On Mon, 09 Aug 2004, dan frost wrote the following:
> I always get syntax errors when calling functions in non-instantiated 
> classes where the classname ($realClassName) is a variable. Is there a way?

 No, you can't do that... ;-( (maybe with PHP5?)
 You'll either have to create an instance first or construct such 
 a statement with the eval function... (no good feeling about that
 though...) ;-| http://cz.php.net/eval


 bye
 Wolfgang







More information about the TYPO3-dev mailing list