Welcome Guest, Not a member yet? Register   Sign In
Redirect to controller specific function w/parameters
#4

[eluser]mddd[/eluser]
Oh, I think I see what you mean now. You mean that CI would call the function in the right controller immediately?
That would give all kinds of problems. For instance: what would be the right values for $this->uri? What would happen with caching?
No, if you use redirect() it sends a header() command and completely reloads the page. It's not happening inside CodeIgniter, but basically making a brand new request. And therefore it will always go through .htaccess and all your routes again.


Messages In This Thread
Redirect to controller specific function w/parameters - by El Forum - 05-30-2010, 01:58 PM
Redirect to controller specific function w/parameters - by El Forum - 05-31-2010, 01:15 AM
Redirect to controller specific function w/parameters - by El Forum - 05-31-2010, 08:50 AM
Redirect to controller specific function w/parameters - by El Forum - 05-31-2010, 09:06 AM



Theme © iAndrew 2016 - Forum software by © MyBB