class Model_X extends Orm/Model
{
protected static $_connection;
public static function connect($db)
{
static::$_connection = $db;
}
}
Model_X::connect(Config::get('db.active'));
Config::set('db.active', $db_name);
It looks like you're new here. If you want to get involved, click one of these buttons!