Welcome to TinyMVC, the tiny PHP Framework.

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:

$config['default']['plugin'] = 'TinyMVC_MYDB';

The plugin class receives that connection's settings array in its constructor. You can also set the plugin for just one connection name, and load models with that connection, as shown in Models.

TinyMVC is licensed under the GNU LGPL license.
This page was rendered in 0.00031 seconds.