CodeIgniter Forums
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>&lt;?php echo $item['name']; ?&gt;</td>
<td>
&lt;?php if ($this->cart->has_options($item['rowid'])) {
foreach ($this->cart->product_options($item['rowid']) as $option => $value) {
echo $option . ": <em>" . $value . "</em>";
}
} ?&gt;
</td>
<td>$&lt;?php echo $item['subtotal']; ?&gt;</td>
<td class="remove">
&lt;?php $uri = $this->uri->segment(1).'/'.$this->uri->segment(2).'/'.$this->uri->segment(3)?&gt;
<a href="&lt;?=base_url()?&gt;shop/remove/'&lt;?php $item['rowid']?&gt;">
<img width="12" alt="" class="thumb" src="http://localhost/supermayorista/assets/graphics/DeleteRed.png">
</a>
</td>
</tr>
&lt;?php endforeach; ?&gt;