Skip to content

Instantly share code, notes, and snippets.

@yangkun
yangkun / DB_Controller.php
Last active December 22, 2015 08:48 — forked from jondavidjohn/MY_Controller.php
[codeigniter] using multiple database
<?php
/***
* filepath: application/core/MY_Controller.php
*/
//setup your base controller
class DB_Controller extends CI_Controller {
//declare them globally in your controller
protected $billing_db;