After searching the internet for a decent walk through or tutorial, I came up with very little and so I decided to collate what have learned in this post with the hope that someone else can benefit from it.
Firstly you will need to obtain the datasources plugin from github and stick it in your application’s plugin folder (app/plugins) – make sure you get the master branch and not the 2.0 as it needs to be compatible with your version of CakePHP (1.3 ideally)
The next thing you need to do is edit the databases config file (app/config/database.php):
//references the datasources plugin
//the host name of your database
//path to the database - note the double backslashes
//'encoding' => 'utf8',
The two important things you should note of is the driver key-value pair which references the datasource plugin namespace, and secondly the double backslashes for the database file path.
All the models you create for your application should now access the corresponding tables through the FireBird SQL connection.
One Comment to “CakePHP 1.3 and Firebird”
Leave a Reply
You must be logged in to post a comment.