dashboard
repositories
filestore
activity
search
login
Filippo Bertilotti
/
corso1
corso https://vola.udemy.com/course/php-mvc-from-scratch/learn/lecture/40931984#overview
summary
reflog
commits
tree
docs
forks
compare
blame
|
history
|
raw
creazione metodo add della classe router e creazione delle prime routes per...
filippo.bertilotti
2024-05-07
c958d08027b1f7735a179da1c15c95e49644a8ef
[~fbertilotti/corso1.git]
/
src
/
router.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<?php
class Router {
private array $routes = [];
public function add(string $path, array $params = []): void {
$this->routes[] = [
"path"=> $path,
"params"=> $params
];
}
}