• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
help redirecting

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

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

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


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.