Re: Using two different DB_DataObject configurations
| From: | Justin Patrin | Date: | Fri, 19 Aug 2005 17:17:05 +0000 |
| Subject: | Re: Using two different DB_DataObject configurations | ||
| References: | 1 | Groups: | php.pear.dev |
| Request: | Send a blank email to pear-dev+get-39467@lists.php.net to get a copy of this message | ||
On 8/19/05, Markus Fischer <markus@fischer.name> wrote:
> Hi,
>
> I'm currently struggling with the problem of having to have to access
> two DataObjects which come from completely separate configurations.
>
> My research went as far that DB_DataObject is loading it's configuration
> from DB_DataObject::_loadConfig, but since this method is called
> statically in many places I cannot just extend DB_DataObject and provide
> a new implementation of _loadConnfig.
>
> The two DataObject configurations are in completely different
> directories and have different database users (with different
> permissions, etc.). They're at least accessing the same database.
>
> Any recommendations what can be done here?
>
You should be able to set up multiple databases for access in your ini file..
--
Justin Patrin