[TYPO3-core] RFC: #14628: Open t3lib_db for own instance
Steffen Kamper
info at sk-typo3.de
Sun Jun 6 11:54:33 CEST 2010
Jigal van Hemert schrieb:
> Steffen Kamper wrote:
>> This allows to make own instances in extension when connection to
>> another DB is needed, so you can use the API as usual, and also DBAL
>> support.
>
> But DBAL can be used to connect to another DB (also another MySQL db)?
> Page 6 of the manual provides an example for defining an alternative
> connection for a few tables.
>
> I think that the DBAL solution also provides support for using this
> extra connection in TS, etc.
>
this is true but isn't point of this RFC.
> 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);
vg Steffen
More information about the TYPO3-team-core
mailing list