Notice: Undefined index: controller in F:\xampp\htdocs\MyProject\thinkphp\yytpdemo\index.php on line 15
Notice: Undefined index: method in F:\xampp\htdocs\MyProject\thinkphp\yytpdemo\index.php on line 16
Fatal error: Call to undefined function C() in F:\xampp\htdocs\MyProject\thinkphp\yytpdemo\index.php on line 17
15:$controller = in_array($_GET['controller'],$controllerAllow)?daddslashes($_GET['controller']):'index';
16:$method = in_array($_GET['method'],$methodAllow)?daddslashes($_GET['method']):'index';
17:C($controller,$method);//
我也有引入这个index.php啊...
//引入封装的方法文件
require_once ('Application/Home/php/function.php');
//require './Application/Home/php/function.php';
在你的url后面加上?controller=xxx&method=xxx,,比如http://localhost.test.php?controller=xxx&method=xxx
xxx是你想访问的控制器或方法名