請教大家啊
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';
2017-05-04
在你的url后面加上?controller=xxx&method=xxx,,比如http://localhost.test.php?controller=xxx&method=xxx
xxx是你想訪問的控制器或方法名