亚洲在线久爱草,狠狠天天香蕉网,天天搞日日干久草,伊人亚洲日本欧美

為了賬號安全,請及時綁定郵箱和手機立即綁定

return $this->fetch(); 致命錯誤: Call to a member function fetch() on null

致命錯誤:?Call?to?a?member?function?fetch()?on?null

? ?protected function fetch($template = '', $vars = [], $replace = [], $config = []) ? ?{ ? ? ? ?return $this->view->fetch($template, $vars, $replace, $config); ? ?}

正在回答

3 回答

有可能多了 _construct()方法

0 回復 有任何疑惑可以回復我~
#1

python_phplinux

我也報這樣的錯,確實是寫了這個_construct()魔術方法,注釋掉后可以訪問到頁面了這是為什么呢?
2018-05-24 回復 有任何疑惑可以回復我~

Index.php文件中

<?php

namespace app\index\controller;

use think\Controller;

class Index extends Controller

{


0 回復 有任何疑惑可以回復我~

幫頂。。

1 回復 有任何疑惑可以回復我~

舉報

0/150
提交
取消

return $this->fetch(); 致命錯誤: Call to a member function fetch() on null

我要回答 關注問題
微信客服

購課補貼
聯系客服咨詢優惠詳情

幫助反饋 APP下載

慕課網APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網微信公眾號