@@ -9,7 +9,12 @@ class Menu { | |||
protected $links; | |||
public function loadMenu($type) { | |||
public function __construct($type) { | |||
$this->_loadMenu($type); | |||
} | |||
protected function _loadMenu($type) { | |||
$db = new DB_Menu(); | |||
$res = $db->getMenu($type); | |||
$results = $res->fetchArray(SQLITE3_ASSOC); |