CodeIgniter Forums

Full Version: help redirecting
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

El Forum

[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
            }

El Forum

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

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