Warning: require_once(/libs/Controller/indexController.class.php): failed to open stream: No such file or directory in D:\AppServ\www\mvc\function.php on line 3 Fatal error: require_once(): Failed opening required '/libs/Controller/indexController.class.p
?function C($name, $method){
??require_once('/libs/controller/'.$name.'Controller.class.php');
??eval('$obj = new '.$name.'Controller();$obj->'.$method.'();');
?}
2017-09-24
老師在后面是加了這個(gè)的?controller=test&method=show,也就是完整的網(wǎng)址是http://localhost:8080/mvc/admin.php?controller=admin&method=test,傳了一個(gè)控制器名admin和test方法的
2017-08-08
require_once('./libs/Model/'.$name.'Model.class.php');
視頻里的php版本可能比較老,我用php7.0的版本路徑要加點(diǎn)
2017-08-02
咱倆的問題一模一樣,你的問題解決了嗎?能否指點(diǎn)一下
2017-07-30
輸入網(wǎng)址為http://localhost/MVC/index.php?controller=test&method=show;而你輸?shù)氖莌ttp://localhost/MVC/index.php?!你忘記傳參了,這個(gè)問題困擾了我一天
2017-04-26
找不到這個(gè)文件/libs/Controller/indexController.class.php,看路徑是否正確