Fatal error: require_once(): Failed opening required '/libs/Controller/indexController.class.php' (include_path='.;C:\xampp\php\PEAR') in C:\xampp\htdocs\william123\MVC\function.php on line 3
2015-09-11
Warning: require_once(/libs/Controller/indexController.class.php): failed to open stream: No such file or directory in C:\xampp\htdocs\william123\MVC\function.php on line 3
2015-09-11
講師回答 / PengCheng
strftime() 是根據區域設置格式化本地時間/日期date 也會用到時區設置出現這個問題是因為你當地的時區和默認的格林位置時間差距8小時。建議在php的最上面加上date_default_timezone_set("PRC");?
2015-09-10
已采納回答 / PengCheng
require_once 在一個腳本里是必須執行,即便在if else 中? 也是這樣。include_once 可以通過一些條件選擇執行或不執行。在實際操作中,可以加條件選擇加載或不加載這個庫文件
2015-09-09
合法的控制器和方法列表中有用不到的參數.(冗余).
$controlerAllow = array('test');
$methodAllow = array('show');
這樣就夠了。畢竟,測試的url是http://localhost/mvc/index.php?controller=test&method=show
$controlerAllow = array('test');
$methodAllow = array('show');
這樣就夠了。畢竟,測試的url是http://localhost/mvc/index.php?controller=test&method=show
2015-09-08