奇怪的Request...

浏览:3215 发布日期:2016/09/13 分类:ThinkPHP5专区
2个文件..都是一样的命名空间,一样的引入.
2个文件都是在application/index/controller 下.

namespace app\index\controller;
use think\Controller;
use think\Request;
use think\Db;
第一个 Chuli.php
class Chuli extends Controller{}

第二个 Index.php
class Index extends Controller{}


2个class里相同的代码是.
dump($request->param("i")); 打印get传值i.


使用url访问地址是
第一个
abc.com/index/chuli/i/1
第二个
abc.com/index/index/i/1

第二个显示i有值,第1个则为空.这是什么问题?

最佳答案
评论( 相关
后面还有条评论,点击查看>>