From TinyMVC Documentation
Revision as of 20:09, 4 January 2011 by 188.8.131.52
Custom Database Plugin
If want to use something other than the built-in PDO database plugin, do the following:
Assuming your database plugin is named MYDB:
- copy tinymvc_pdo.php from /sysfiles/plugins/tinymvc_pdo.php to /myapp/plugins/tinymvc_mydb.php
- edit the file, rename the class from TinyMVC_PDO to TinyMVC_MYDB.
- edit the functionality to your liking
- edit /myapp/configs/database.php, change the plugin name to MYDB.