Model base class. All models should extend this class.
Class declared in SYSPATH/classes/Model.php on line 3.
Create a new model instance.
$model = Model::factory($name);
string
$name
required - Model name Model
public static function factory($name)
{
// Add the model prefix
$class = 'Model_' . $name;
return new $class;
}