map/system/connection update functionality (backend)

This commit is contained in:
exodus4d
2015-02-28 14:08:24 +01:00
parent 503a31c48e
commit 417961cd1e
54 changed files with 7173 additions and 337 deletions

View File

@@ -31,14 +31,16 @@ class Controller {
$f3 = \Base::instance();
$this->f3 = $f3;
// init DB
$this->setDB('PF');
}
/**
* event handler
*/
function beforeroute() {
// init DB
$this->setDB('PF');
}
/**
@@ -51,6 +53,10 @@ class Controller {
}
}
/**
* set/change DB connection
* @param $type
*/
protected function setDB($type){
if($type === 'CCP'){
@@ -70,7 +76,6 @@ class Controller {
}
$this->f3->set('DB', $db);
}