Documentation:Database

From TinyMVC

Jump to: navigation, search

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 db.TMVC_PDO.php from /sysfiles/plugins/db.TMVC_PDO.php to /myapp/plugins/db.MYDB.php
  • edit the file, rename the class from TMVC_PDO to MYDB.
  • edit the functionality to your liking
  • edit /myapp/configs/database.php, change the plugin name to MYDB.
Personal tools