#<?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();
#o index.php出現(xiàn)錯誤Import 'app\index\controller\Base' is not necessary,Usage of statement use was not found.
問題已解決,原因是Apache 下的偽靜態(tài)未開啟(.htaccess檔案下)中# RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L)改為RewriteRule ^(.* )$ index.php? /$1 [QSA,PT,L)即可
老師,而且也將//use app\index\controller\Base;改為Import 'app\index\controller\Base';也不