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();
}
}
com_bat2018-03-13 20:28:52
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
com_bat2018-03-12 00:54:02
Teacher, and also changed //use app\index\controller\Base; to Import 'app\index\controller\Base'; also doesn't work