From 36ef34af2abcdea63a73b578208f20ca40b52f49 Mon Sep 17 00:00:00 2001 From: vincent-peugnet Date: Thu, 1 Nov 2018 15:56:24 +0100 Subject: flywheel database added --- w/class/controllerdb.php | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'w/class/controllerdb.php') 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(); + } + -- cgit v1.2.3