我如何在CodeIgniter的基本控制器的index.php中接受id?我想实现http://localhost/1234而不是创建user另一个类的方法account?url变为何处http://localhost/account/user/1234。
http://localhost/1234
user
account
http://localhost/account/user/1234
更改文件路由并使用所需ID设置规则的唯一方法。
但是,为什么要这么做呢?如果这样做,则不要利用CI的MVC。我认为。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
点击生成二维码
我来说两句