[TYPO3-dev] Annoyed by the use of $GLOBALS['TYPO3_DB']

Dmitry Dulepov [typo3] dmitry at typo3.org
Sat Sep 20 08:57:48 CEST 2008


Hi!

Benjamin Mack wrote:
> when I'm developing extensions, I find it very annoying to use 
> $GLOBALS['TYPO3_DB'] all the time, and it makes the code not so readable 
> anymore.
> 
> What do you think of having a reference to the $GLOBALS['TYPO3_DB'] in 
> every instance of pi_base? Similar to what we have with div/lib...

I do not like that. If this is done, every other class will like to have his own reference. -1. Don't be lazy ;)

-- 
Dmitry Dulepov
TYPO3 Core team
My TYPO3 book: http://www.packtpub.com/typo3-extension-development/book
In the blog: http://typo3bloke.net/post-details/tag_your_typo3_extension_releases_in_svn/




More information about the TYPO3-dev mailing list