WIP AddressDB + api
This commit is contained in:
@@ -41,15 +41,17 @@ class mfBaseModel {
|
||||
if(defined("MFMODEL_USEFIELDPREFIX") && MFMODEL_USEFIELDPREFIX==true) {
|
||||
$this->prefixfields=true;
|
||||
}
|
||||
if(method_exists($this, "init")) {
|
||||
$this->init($_);
|
||||
}
|
||||
$this->data = new stdClass();
|
||||
|
||||
$this->data = new stdClass();
|
||||
|
||||
if(FRONKDB) {
|
||||
$this->db=FronkDB::singleton();
|
||||
}
|
||||
|
||||
if(method_exists($this, "init")) {
|
||||
$this->init($_);
|
||||
}
|
||||
|
||||
if(is_numeric($_)) {
|
||||
$this->fetch($_);
|
||||
} elseif(is_object($_)) {
|
||||
|
||||
Reference in New Issue
Block a user