Initial habit tracker project
This commit is contained in:
commit
23416ee382
20 files changed
+1157
No files matched your search
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
class Category
|
||||
{
|
||||
public static function all(): array
|
||||
{
|
||||
return Database::connection()
|
||||
->query('SELECT id, name, color FROM categories ORDER BY name')
|
||||
->fetchAll();
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user