aboutsummaryrefslogtreecommitdiff
path: root/w/class/modeldb.php
diff options
context:
space:
mode:
Diffstat (limited to 'w/class/modeldb.php')
-rw-r--r--w/class/modeldb.php17
1 files changed, 14 insertions, 3 deletions
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());
+
+ }
+