Forums / Setup & design / Interaction with external DB

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

Interaction with external DB

Author Message

Yves Deschrijvere

Friday 02 July 2004 4:44:50 am

Hi,

Is it possible to interact with external databases and dispay content in Exponential ?

Regards,
Yves

No limits, except those of your mind ...

Björn X

Friday 02 July 2004 5:16:29 am

Yes but you need to write your own module for it.

you can use eZDB::instance() and eZDB::setInstance($db) to switch dbs.

Hardy Pottinger

Monday 19 July 2004 1:53:20 pm

Just curious, I'm about to try this, but my scanning of the code for the db class looks like you can really only have one instance at a time. So, if you change the instance, even if you park this in another variable (something other than $db), you'll end up changing your database, which in most cases would break everything else.

Am I wrong? I suppose I'll find out soon enough, but I thought I'd ask anyway.