[TYPO3] how to generate link

Elmar Hinz elmar07 at googlemail.com
Wed Aug 1 17:04:45 CEST 2007


> 
> I think adding Singleton pattern to t3lib_div::makeInstance would be
> quite simple. I've tried it once, but Typo3 didn't work then. I guess,
> only a few chosen classes could be singleton.
> 

I have that in mind since the beginning for tx_div::makeInstance, one reason
to wrap t3lib_div::makeInstance apart from the autoloading. As you observe
it doesn't work for all objects. Could be controlled by a second parameter:

tx_div::makeInstance('classname'); // instance
tx_div::makeInstance('classname', TRUE); // find as singleton

That direction.

However performance tuning of lib/div is on the roadmap after  07/09/15.

http://wiki.typo3.org/index.php/MVC_Framework 

Regards

Elmar










More information about the TYPO3-english mailing list