Documentation:Database

From TinyMVC Documentation

Revision as of 20:09, 4 January 2011 by 208.82.104.178 (Talk)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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 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.
Personal tools