diff --git a/materiels.tar.gz b/materiels.tar.gz index e251a4a..0913d59 100644 Binary files a/materiels.tar.gz and b/materiels.tar.gz differ diff --git a/src/lib/Category.php b/src/lib/Category.php new file mode 100644 index 0000000..1694006 --- /dev/null +++ b/src/lib/Category.php @@ -0,0 +1,24 @@ + 'int', + 'name' => 'string', + ]; + + static public function listAll(): array + { + return DB::getInstance()->get('SELECT id, name FROM plugin_materiels_category ORDER BY name COLLATE NOCASE;'); + } +} diff --git a/src/templates/_nav.tpl b/src/templates/_nav.tpl index 1b9b263..68a2f6b 100644 --- a/src/templates/_nav.tpl +++ b/src/templates/_nav.tpl @@ -1,6 +1,7 @@