From 26f88e043ebedcadd337011ce527f6148350f0dc Mon Sep 17 00:00:00 2001 From: vincent-peugnet Date: Wed, 31 Oct 2018 15:28:37 +0100 Subject: homemade very root database engine --- w/class/modeldb.php | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) (limited to 'w/class/modeldb.php') diff --git a/w/class/modeldb.php b/w/class/modeldb.php index 346a275..6064b4f 100644 --- a/w/class/modeldb.php +++ b/w/class/modeldb.php @@ -4,14 +4,25 @@ class Modeldb extends Model /** @var PDO */ protected $bdd; protected $arttable; + protected $database; + protected $artstore; - protected static $db; public function __construct() { - $this->setbdd(); - + //$this->setbdd(); //self::setdb(); + + $this->dbinit(); } + + + public function dbinit() + { + $this->database = new Dbengine(__DIR__ . '/../../w_database'); + $this->artstore = $this->database->store(Config::arttable()); + + } + -- cgit v1.2.3