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

Robert Lemke rl at robertlemke.de
Mon Aug 9 18:40:41 CEST 2004


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

I feared that. But does anybody see a reason why call_user_function does not return 
references? That's dumb.

-- 
robert

"They placed me on this earth without a manual. 
 And I dare to say, I’m doing just fine without ;)"






More information about the TYPO3-dev mailing list