[TYPO3-dev] Your opinion please: ZF and T3

Martin Kutschker masi-no at spam-typo3.org
Mon Jul 5 09:50:20 CEST 2010


Am 02.07.2010 22:12, schrieb Christian Opitz - Netzelf:
> Hi Masi,
> 
>> Why the DB-adapter? Do you propose to access TYPO3's DB through it? IMHO this is a dangerous course.
> 
> Yes, actually i do that - i'm using the link from $GLOBALS['TYPO3_DB'] for that. You can see the
> adapter here:
> http://forge.typo3.org/projects/extension-zfext/repository/entry/trunk/zfext/library/Zend/Db/Adapter/Typo3.php
> 
> 
> Why is that dangerous?

You disable DBAL support for extensions, which is probably only a "defect" for public extensions on
TER. Also it encourages users of your ZF extensions to bypass the DB API of TYPO3. This could have
unwanted side effects when ZF doesn't have the same hooks as the regulat API has.

So using ZF's DB access is not dangerous itself, but it least in the wrong direction.

Masi




More information about the TYPO3-dev mailing list