【发布时间】:2013-11-20 10:26:36
【问题描述】:
让我在以下位置
http://localhost/ignitershop/index.php/seller_controller/viewcart
在这个视图中,我有一个链接,使用它我想移动到同一个控制器的另一个方法,称为 removeRow() 。所以我使用href如下
<a href="seller_controller/removeRow" >CLICK TO REMOVE </a>
所以我希望新的网址是:
http://localhost/ignitershop/index.php/seller_controller/removeRow
但 url 似乎是连接的。它正在变成如下内容:
http://localhost/ignitershop/index.php/seller_controller/seller_controller/removeRow
也就是说,seller_controller 来了两次。我也面临着使用重定向的这种类型的连接问题。所以我需要知道什么是同一控制器切换方法的最佳方式。有什么好的解决办法???
【问题讨论】:
标签: php codeigniter redirect methods