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
rimuovendo le credenziali del database e inizializzazione costruttore (part...
filippo.bertilotti
2024-05-14
7739eae8d2d52578839eb771d7200a75dd582396
[~fbertilotti/corso1.git]
/
src
/
Framework
/
Viewer.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?php
namespace Framework;
class Viewer {
public function render(string $template, array $data = []): string {
extract($data, EXTR_SKIP);
ob_start();
require "views/$template";
return ob_get_clean();
}
}