标签: php codeigniter
如何在CodeIgniter中接受基本控制器的index.php中的id?我想实现http://localhost/1234而不是创建方法user另一个类account?网址变为http://localhost/account/user/1234。
http://localhost/1234
user
account
http://localhost/account/user/1234
答案 0 :(得分:0)
它改变文件路径并使用您想要的ID设置规则的唯一方法。
但是,你为什么要那样做?如果你这样做不利于CI的MVC。我想。