[TYPO3-ect] ECT library
Peter Niederlag
niederlag at ikd01.de
Wed Mar 8 20:34:22 CET 2006
Hi,
Elmar Hinz schrieb:
> Stanislas Rolland schrieb:
[...]
> I don't really like the direct access to the global variables. I would
> prefer a call like this:
>
> $langPointer =& t3lib_div::findLANG(); instad of $GLOBALS['LANG'].
> That would give flexibility behind the getLANG() factory method.
+1. But please don't use t3lib_div for this. ;)
I think a registry/register is a pattern that many frameworks use by now
and would be very nice for 4.5/5.0. for example have a look at:
http://framework.zend.com/manual/zend.register.html
Cheers,
Peter
--
Peter Niederlag
http://www.niekom.de * TYPO3 & EDV Dienstleistungen *
http://www.typo3partner.net * professional services network *
More information about the TYPO3-team-extension-coordination
mailing list