1-8 Create a view layer, the view path is wrong
susu
susu 2019-11-14 12:59:10
0
0
931

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?

susu
susu

reply all(0)
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!