Using Sqlite3 with CakePHP
Posted
by Dan
on Stack Overflow
See other posts from Stack Overflow
or by Dan
Published on 2010-04-27T15:12:39Z
Indexed on
2010/04/27
15:13 UTC
Read the original article
Hit count: 504
Hello, I'm trying to run Sqlite3 with CakePHP. Yes, i know it's not officially supported, but this post here: http://stackoverflow.com/questions/1021980/cakephp-sqlite says it's possible. I've downloaded the new driver file "dbo_sqlite3.7.php" and put it in "cake/libs/model/datasources/dbo". Now I'm having trouble getting connected to the db.
Things I'm confused on:
Where should my database.sqlite file be kept
What should my config file look like. Should I be referencing the full filename of the driver? Like 'driver' => 'dbo_sqlite3.7.php'? And can I use relative paths to the db file?
Is there a difference in sqlite3 files and sqlite2 files by themselves, or is it just the way that you handle the files that makes the difference?
Thank you for your help. I'm new to cake and I'm excited about learning more.
© Stack Overflow or respective owner