[TYPO3-core] RFC: #14628: Open t3lib_db for own instance
Steffen Kamper
info at sk-typo3.de
Sun Jun 6 12:40:11 CEST 2010
Jigal van Hemert schrieb:
>
> Then what is the point of this RFC?
>
consistency + cleanup, as i already quoted!
>>> Can you give us a use case and an example for how to use this
>>> alternative method?
>> i showed in the RFC how this will be done:
>>
>> $this->db = t3lib_div::makeInstance('t3lib_DB');
>> $this->db->connectDB($host, $user, $password, $dbName);
>
> And what about a use case? In which circumstances did you need a second
> db object where the DBAL solution for a different handler for certain
> tables wasn't sufficient?
>
any situation where you need data from other DB without using DBAL.
Man, this is a 2-liner. I saw so much extensions doing that with raw
mysql commands. I would like to point to TYPO3 API always!
vg Steffen
More information about the TYPO3-team-core
mailing list