第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號(hào)安全,請(qǐng)及時(shí)綁定郵箱和手機(jī)立即綁定

我在瀏覽器中會(huì)顯示hello worldhello world。請(qǐng)問(wèn)這是怎么回事?

<?php

require_once('function.php');

$controllerAllow=array('test','index');

$methodAllow=array('test','index','show');

$controller =in_array($_GET['controller'],$controllerAllow)?daddslashes($_GET['controller']):'index';

$method =in_array($_GET['method'],$methodAllow)?daddslashes($_GET['method']):'index';

C($controller,$method);

?>


<?php

class testController{

function show(){

$testModel = M('test');

$data = $testModel->get();

$testView = V('test');

$testView->display($data);

}

}

?>


正在回答

2 回答

function.php文件中老師寫(xiě)過(guò)的“C('test','show');”注釋掉就可以了,我也有過(guò)同樣的問(wèn)題。

0 回復(fù) 有任何疑惑可以回復(fù)我~

應(yīng)該是在哪里執(zhí)行過(guò)一次show()方法了

0 回復(fù) 有任何疑惑可以回復(fù)我~

舉報(bào)

0/150
提交
取消
MVC架構(gòu)模式分析與設(shè)計(jì)
  • 參與學(xué)習(xí)       82425    人
  • 解答問(wèn)題       954    個(gè)

通過(guò)學(xué)習(xí)MVC理論知識(shí),由淺入深帶您實(shí)現(xiàn)人生第一個(gè)MVC框架

進(jìn)入課程

我在瀏覽器中會(huì)顯示hello worldhello world。請(qǐng)問(wèn)這是怎么回事?

我要回答 關(guān)注問(wèn)題
微信客服

購(gòu)課補(bǔ)貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動(dòng)學(xué)習(xí)伙伴

公眾號(hào)

掃描二維碼
關(guān)注慕課網(wǎng)微信公眾號(hào)