Linux Format forums Forum Index Linux Format forums
Help, discussion, magazine feedback and more
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CakePHP (tutorial in LXF)

 
Post new topic   Reply to topic    Linux Format forums Forum Index -> Programming
View previous topic :: View next topic  
Author Message
Joe1011010



Joined: Sat Apr 01, 2006 9:01 pm
Posts: 7

PostPosted: Wed Oct 13, 2010 7:41 am    Post subject: CakePHP (tutorial in LXF) Reply with quote

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
View user's profile Send private message
taurruslevy



Joined: Sat Jan 22, 2011 10:44 am
Posts: 1
Location: Virginia

PostPosted: Sat Jan 22, 2011 11:05 am    Post subject: Reply with quote

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 user's profile Send private message
View previous topic :: View next topic  
Display posts from previous:   
Post new topic   Reply to topic    Linux Format forums Forum Index -> Programming All times are GMT
Page 1 of 1

 
Jump to:  
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
Linux Format forums topic RSS feed 


Powered by phpBB © 2001, 2005 phpBB Group


Copyright 2011 Future Publishing, all rights reserved.


Web hosting by UKFast