Thursday, March 3, 2011

Re: Configure datasources plugin

Yes, i see that mistake just after my post. I correct it, but same result.

On Thu, Mar 3, 2011 at 4:26 PM, Ryan Schmidt <google-2010@ryandesign.com> wrote:

On Mar 3, 2011, at 05:13, damien d wrote:

> I'm new on cakephp 1.3.7 and i want to access a sqlite3 db.
> So i take a look to datasources plugins (https://github.com/cakephp/
> datasources/) that support this kind of database.
>
> I unzip it under app/plugins/datasources, and i configure my database
> under database.php :
> class DATABASE_CONFIG {
>
>       var $default = array(
>               'driver' => 'Datasources.DboSqlite3',
>               'host' => '',
>               'port' => '',
>               'login' => '',
>               'password' => '',
>               'database' => '/var/www/discofy/discotify.db/',

There probably shouldn't be a slash at the end, since you're referring to an SQLite database file, not a directory.





--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php



--
Damien Durant

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
 
 
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: