亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

渲染登陸模板
com_bat
com_bat 2018-03-12 00:48:14
0
5
1681





#<?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.

和視屏代碼一樣,渲染不了登陸模板,並且將問答社區(qū)的方法都試過了也不行

com_bat
com_bat

全部回覆(4)
com_bat

問題已解決,原因是Apache 下的偽靜態(tài)未開啟(.htaccess檔案下)中# RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L)改為RewriteRule ^(.* )$ index.php? /$1 [QSA,PT,L)即可

  • 回覆 我的.htaccess檔案裡面就三個單字「deny from all」。 。 。這怎麼改
    Lipuor 作者 2019-02-23 12:21:26
sky

命名空間錯誤!

lge

Base你寫了嘛

  • 回覆 Base是我寫的
    com_bat 作者 2018-03-12 17:27:43
com_bat

老師,而且也將//use app\index\controller\Base;改為Import 'app\index\controller\Base';也不

最新下載
更多>
網(wǎng)站特效
網(wǎng)站源碼
網(wǎng)站素材
前端模板