CakePHP (tutorial in LXF)

Code junkies hangout here

Moderators: ChrisThornett, LXF moderators

CakePHP (tutorial in LXF)

Postby Joe1011010 » Wed Oct 13, 2010 6:41 am

I read this tutorial, and recognised the structure as being similar to Ruby on Rails. I had previously given up on RonR as I did not want to learn a new language.

I have installed CakePHP and found a problem. CakePHP 1.3.4 is the current version; it does not support SQLite3 !!

Having set the database configuration file, and calling up the initial page in my browser, CakePHP creates the database file (empty), and says it can access the database. When you create a table it and refresh the browser, it now says it cannot access the database. I eventually found the problem when using the Bake utility that gave me a decent error message. I am not going back to SQLite2, so it's over to MySQL for me.
Joe1011010
 
Posts: 7
Joined: Sat Apr 01, 2006 8:01 pm

Postby taurruslevy » Sat Jan 22, 2011 11:05 am

Hey there, you should download the driver file "dbo_sqlite3.7.php" and put it in "cake/libs/model/datasources/dbo" and your database config could look like this:

var $default = array(
'driver' => 'sqlite3',
'database' => 'database.sqlite'
);
User avatar
taurruslevy
 
Posts: 1
Joined: Sat Jan 22, 2011 10:44 am
Location: Virginia


Return to Programming

Who is online

Users browsing this forum: No registered users and 1 guest

cron