I succeeded connecting cakephp with adodb:

<?php

class DATABASE_CONFIG
{
        var $default = array('driver' => 'adodb',  //use "adodb"
                                                                'connect' => 
'odbc', //adodb support not only "odbc", but also
"mysql", "ldap", etc)
                                                                'host' => 
'mysql', //mysql is my dns name that i defined in
ODBC Control Panel
                                                                'login' => 
'root',
                                                                'password' => 
'',
                                                                'database' => 
'cool',  // you don't need this, because if you
define dns in ODBC Control Panel you define also the database name
                                                                'prefix' => '');
}

?>

Ok, odbc connection is defined. CakePHP is connected to ODBC. But now
I get the error

Warning: Invalid argument supplied for foreach() in E:\xampp\htdocs
\cake\cake\libs\model\dbo\dbo_adodb.php on line 222

This line should actually return the column name.

I'm looking now into the code of ADODB. If it takes too long, to get
ODBC works on CakePHP, I'm thinking to use another Framework, or may
be Rails or Java.

Can somebody help me NOT MOVING to another language or framework?

Jon


On 17 Mrz., 23:37, "jon" <[EMAIL PROTECTED]> wrote:
> Ok,
>
> I've recognize thatODBCin CakePHP is experimental.
> I tried to use adodb. Should I set something before, so adodb refers
> to myodbcsettings?
>
> I don't find "adodb" when I run bake.php and set the database. Should
> I set it manually in Code?
>
> Jon
>
> On 16 Mrz., 18:10, "nate" <[EMAIL PROTECTED]> wrote:
>
> > Hey Jon, the nativeODBCdriver is still experimental... at best.  It
> > is recommended that you use the ADOdb driver forODBC.
>
> > On Mar 16, 12:28 pm, "jon" <[EMAIL PROTECTED]> wrote:
>
> > > Hi,
>
> > > I'm trying now to useODBCin CakePHP. When I generated the Model, I
> > > got always some warnings formodbcfunction. Does CakePHP support
> > > alreadyODBC?
>
> > > FYI: I'm using Adabas D.
>
> > > Jon


--~--~---------~--~----~------------~-------~--~----~
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