Initial backend folder structure and setup

This commit is contained in:
MosLaptop\Not.Reda
2025-06-13 12:32:36 +02:00
parent 504f6ef3e2
commit 2ccfce135d
6 changed files with 70 additions and 0 deletions

View File

@@ -0,0 +1,14 @@
<?php
require_once __DIR__ . '/../Models/Project.php';
class ProjectController {
private $project;
public function __construct($db) {
$this->project = new Project($db);
}
public function getAllProjects() {
return $this->project->fetchAll();
}
}