Initial habit tracker project
This commit is contained in:
@@ -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