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 eZ Publish ?

Regards,
Yves

No limits, except those of your mind ...

Björn [email protected]

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.

Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs
Looking for hosting? http://hostingezpublish.com
-----------------------------------------------------------------------------
GMT +01:00 Hannover, Germany
Web: http://www.xrow.com/

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.

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.