[TYPO3] Typo3 coding standards
Xavier Perseguers
typo3 at perseguers.ch
Sun Aug 10 12:56:25 CEST 2008
Hi,
> I have used functions *mysql()* and *mysql_fetch_array()* in my plugin. Do i
> have to use *exec_SELECTquery<http://www.typo3-unleashed.net/typo3apidocs/typo3api_4.0.0/html/de/d07/classt3lib__DB.html#7b17306626fbf95a27cf7c854cfba59a>
> * () or above functions are ok.
methods exec_* are the way to go if you want to be compliant to TYPO3
standards. But they read data from the TYPO3 database. If you need to
read other databases from your extension, you should use play with
extension ADODB and should be able to use exec_* functions for your own
extension reading/writing from/to another database. I did not have time
to use them a lot but including PEAR packages for MSSQL for instance or
writing again all mysql() statements yourself is definitively not a good
thing to do except for experimenting stuff before writing cleaner code.
> Another questions what all php5 extensions should be enable for typo3 4.2.1.
Open install tool and check that config is OK and that image
manipulation is OK too. You'll certainly need:
- gd
- iconv/mbstring
and perhaps other to let Extension Manager be able to download packages
successfuly, I do not know and did not check, I always activate Curl.
--
Xavier Perseguers
http://xavier.perseguers.ch/en
More information about the TYPO3-english
mailing list