CodeIgniter Forums
Easier way of achieving this? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html)
+--- Thread: Easier way of achieving this? (/thread-48168.html)



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.