1 <?php defined('SYSPATH') OR die('No direct access allowed.');
5 * $Id: Model.php 4007 2009-02-20 01:54:00Z jheathco $
9 * @copyright (c) 2007-2009 Kohana Team
10 * @license http://kohanaphp.com/license.html
15 protected $db = 'default';
18 * Loads the database instance, if the database is not already loaded.
22 public function __construct()
24 if ( ! is_object($this->db))
26 // Load the default database
27 $this->db = Database::instance($this->db);