1-8 Create the view layer and follow the teacher’s code. The view path is wrong.
core/View.php file
public function make ($file) {
$this ->file = 'view/'.$file.'.html';
return $this;
}
I only added set_include_path($_SERVER['DOCUMENT_ROOT'].' demo/web/'); can be displayed correctly. Why didn't the teacher add anything? Is it enough to just use the above code?