1
TinyMVC Framework Development / TinyMVC_PDO_Model instead ?
« on: September 11, 2008, 08:57:55 am »Woudnt it be more appropriate to have an empty TinyMVC_Model Class and having for example TinyMVC_PDO_Model extend TinyMVC_Model ?
Code: [Select]
class TinyMVC_Model
{
/**
* class constructor
*
* @access public
*/
function __construct() {
}
}
class TinyMVC_PDO_Model extends TinyMVC_Model{
/**
* $db
*
* the database object instance
*
* @access public
*/
var $db = null;
function __construct($poolname=null){
$this->db = tmvc::instance()->load->database($poolname);
}
}
