<?php
namespace app\index \controller;
use app\index\controller\Base;(Import 'app\index\controller\Base' is not necessaryUsage of statement use was not found.)class Index extends Base
{
public function index()
{
return $this -> view -> fetch();
}
}
Under the controller An error occurred in index.php. Import 'app\index\controller\Base' is not necessary, Usage of statement use was not found.
is the same as the video code, the login template cannot be rendered, and all the methods of the Q&A community have been changed. It doesn't work even if I try it
The problem has been solved because the pseudo-static under Apache is not turned on (under the .htaccess file)# RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L) is changed to RewriteRule ^(.* )$index.php? /$1 [QSA,PT,L) can
Namespace error!
Did you write Base?
Teacher, and also changed //use app\index\controller\Base; to Import 'app\index\controller\Base'; also doesn't work