CodeIgniter Forums
help redirecting - 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: help redirecting (/thread-10452.html)



help redirecting - El Forum - 07-31-2008

[eluser]Xtrex[/eluser]
Hi, how can I do to redirect to other controller in a controller? this is my controller

Code:
if ($this->noticiar->noticias_url($uri,1)) {
               $this->load->view('noticias');
            } else {
               // Go to /noticias/example
            }



help redirecting - El Forum - 07-31-2008

[eluser]Yash[/eluser]
[url="http://ellislab.com/codeigniter/user-guide/helpers/url_helper.html"]user guide[/url]

Code:
redirect('/controllerfunction/', 'refresh');