function C($name, $method) {
require_once ('/libs/Controller/' . $name . 'Controller.class.php');
哪里錯了·
require_once ('/libs/Controller/' . $name . 'Controller.class.php');
哪里錯了·
2015-09-11
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
合法的控制器和方法列表中有用不到的參數.(冗余).
$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