Core/Application/Models/model.example.php
Abel Hoogeveen 9ce89a180e It is now possible to have multiple types of models.
Just add one call to a model like "$this->setType('techfuze/databasemodel', 'DatabaseModel');" and you load a FuzeWorks2 esque SQL model
2015-03-16 13:29:03 +01:00

14 lines
285 B
PHP

<?php
class Example extends Model{
public function __construct(&$core){
parent::__construct($core);
$this->setType('techfuze/databasemodel', 'DatabaseModel');
$this->fields = array('id', 'key', 'value');
$this->table = 'example';
}
}
?>