 |
Linux Format forums Help, discussion, magazine feedback and more
|
| View previous topic :: View next topic |
| Author |
Message |
Joe1011010
Joined: Sat Apr 01, 2006 9:01 pm Posts: 7
|
Posted: Wed Oct 13, 2010 7:41 am Post subject: CakePHP (tutorial in LXF) |
|
|
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. |
|
| Back to top |
|
 |
taurruslevy

Joined: Sat Jan 22, 2011 10:44 am Posts: 1 Location: Virginia
|
Posted: Sat Jan 22, 2011 11:05 am Post subject: |
|
|
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'
); _________________ electronic signature sharepoint |
|
| Back to top |
|
 |
| View previous topic :: View next topic |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|