The following worked:

vendor ('adodb' . DS . 'adodb.inc');
if ( !$Dbo = NewADOConnection('odbc') ) throw new
Exception('NewADOConnection failed');
$Dbo->Connect($my_dsn, $dbuser, $dbpass);

Are there better/safer/cleaner ways?

Tom




On Jan 28, 8:22 am, "[EMAIL PROTECTED]" <[EMAIL PROTECTED]> wrote:
> Hi,
>
> I see from the Cake API that there is a DboAdodb class:
>
> http://api.cakephp.org/class_dbo_adodb.html
>
> How can I create an object using this class within say a controller?
>
> I need to connect to an iSeries database.  I have been able to
> successfully connect using the Adodb library outside of Cake.  When I
> try to configure Cake to connect however, the autoconfig stuff always
> causes it to choke.
>
> I notice that Cake includes the Adodb library.  If I could just figure
> out a way to create my own Adodb object, my problem would be solved.
>
> Thanks,
> Tom

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to