diff options
author | vincent-peugnet <v.peugnet@free.fr> | 2018-11-01 15:56:24 +0100 |
---|---|---|
committer | vincent-peugnet <v.peugnet@free.fr> | 2018-11-01 15:56:24 +0100 |
commit | 36ef34af2abcdea63a73b578208f20ca40b52f49 (patch) | |
tree | ba1fbb87b954324ecfc27afece7a5258deb88bd6 /w/class/controllerdb.php | |
parent | 26f88e043ebedcadd337011ce527f6148350f0dc (diff) | |
download | wcms-36ef34af2abcdea63a73b578208f20ca40b52f49.tar.gz wcms-36ef34af2abcdea63a73b578208f20ca40b52f49.zip |
flywheel database added
Diffstat (limited to 'w/class/controllerdb.php')
-rw-r--r-- | w/class/controllerdb.php | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/w/class/controllerdb.php b/w/class/controllerdb.php index 5952627..f21d265 100644 --- a/w/class/controllerdb.php +++ b/w/class/controllerdb.php @@ -15,15 +15,6 @@ class Controllerdb extends Controller } - public function dbinit() - { - $this->database = new SleekDBw(__DIR__ . '/../../w_database', [ - 'auto_cache' => false - ]); - $this->artstore = $this->database->store(Config::arttable()); - - } - public function fetch() @@ -42,6 +33,11 @@ class Controllerdb extends Controller } + public function add() + { + $user = $usersDB->where( 'name', '=', 'Joshua Edwards' )->fetch(); + } + |