![]() |
Redirect to the same page - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Redirect to the same page (/showthread.php?tid=48305) |
Redirect to the same page - El Forum - 01-11-2012 [eluser]Unknown[/eluser] I want to redirect to the same page i go to a controller and then go to my last page again... <?php foreach ($cart as $item): ?> <tr> <td><?php echo $item['name']; ?></td> <td> <?php if ($this->cart->has_options($item['rowid'])) { foreach ($this->cart->product_options($item['rowid']) as $option => $value) { echo $option . ": <em>" . $value . "</em>"; } } ?> </td> <td>$<?php echo $item['subtotal']; ?></td> <td class="remove"> <?php $uri = $this->uri->segment(1).'/'.$this->uri->segment(2).'/'.$this->uri->segment(3)?> <a href="<?=base_url()?>shop/remove/'<?php $item['rowid']?>"> <img width="12" alt="" class="thumb" src="http://localhost/supermayorista/assets/graphics/DeleteRed.png"> </a> </td> </tr> <?php endforeach; ?> |