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

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

我在瀏覽器中會顯示hello worldhello world。請問這是怎么回事?

<?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文件中老師寫過的“C('test','show');”注釋掉就可以了,我也有過同樣的問題。

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

應該是在哪里執行過一次show()方法了

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

舉報

0/150
提交
取消

我在瀏覽器中會顯示hello worldhello world。請問這是怎么回事?

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

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

幫助反饋 APP下載

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

公眾號

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