1 <?php
defined('SYSPATH') OR die('No direct access allowed.');
5 * $Id: Model.php 3917 2009-01-21 03:06:22Z zombor $
9 * @copyright (c) 2007-2009 Kohana Team
10 * @license http://kohanaphp.com/license.html
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('default');