Abel Hoogeveen
9ce89a180e
Just add one call to a model like "$this->setType('techfuze/databasemodel', 'DatabaseModel');" and you load a FuzeWorks2 esque SQL model
14 lines
285 B
PHP
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';
|
|
}
|
|
}
|
|
|
|
?>
|