CodeIgniter Forums
Easier way of achieving this? - 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: Easier way of achieving this? (/showthread.php?tid=48168)



Easier way of achieving this? - El Forum - 01-06-2012

[eluser]Samus[/eluser]
Code:
// code
else {
                    redirect($this->uri->segment(1).'/'.$this->uri->segment(2).'/'.$this->uri->segment(3));
                }

I can't seem to find any helpers/libraries that can help me achieve this redirect? The pages are dynamic so I can't just define where to redirect to.

Just wondering if there was a more effecient way of achieving the above.