课程
/后端开发
/PHP
/MVC架构模式分析与设计
怎么解决这个问题,各路大神帮帮忙
2017-11-14
源自:MVC架构模式分析与设计 4-5
正在回答
<?php class testController { function show() { $testModel=M('test'); $data=$testModel->get(); $testView=V('test'); $testView->display($data); } }
testController里有index方法?
function C($name, $method) { require_once 'libs/Controller/'.$name.'Controller.class.php'; //eval('$obj=new '.$name.'Controller();$obj->'.$method.'();'); $controller=$name.'Controller'; $obj=new $controller(); $obj->$method(); }
检查是否与视频输入一致 提示的信息说明方法未定义
qq_清风徐来_20 提问者
举报
通过学习MVC理论知识,由浅入深带您实现人生第一个MVC框架
4 回答Fatal error: Call to undefined method testController::index() in C:\wamp\www\MVC\function.php(4) : eval()'d code on line 1
2 回答Fatal error: Call to undefined method adminController::showmessage() in D:\xampp\htdocs\MVC\libs\Controller\adminController.class.php on line 42
1 回答hello word! Fatal error: Call to undefined method empController::index() in D:\PHPTutorial\WWW\mvc\libs\function.php on line 10
1 回答Parse error: syntax error, unexpected '=' in G:\xampp-win32-5.6.12-0\htdocs\new\framework\function\function.php(6) : eval()'d code on line 2 Notice: Undefined variable: obj in G:\xampp-win32-5.6.12-0\htdocs\new\framework\function\function.php on line 7
1 回答Notice: Undefined index: controller in D:\phpStudy\WWW\mvc\index.php on line 8 Notice: Undefined index: method in D:\phpStudy\WWW\mvc\index.php on line 9