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