Welcome Guest, Not a member yet? Register   Sign In
After running a method dinamically reload same page?
#3

[eluser]tunesmith[/eluser]
No, that doesn't work. current_url returns the url of the controller being called, not the url of the page it came from. redirect(current_url()) called from within a controller returns an infinite loop error.

You want to instead run current_url in the previous controller, and pass it as a parameter to the second controller. Then redirect to that parameter.


Messages In This Thread
After running a method dinamically reload same page? - by El Forum - 02-09-2010, 09:28 AM
After running a method dinamically reload same page? - by El Forum - 02-09-2010, 01:18 PM
After running a method dinamically reload same page? - by El Forum - 08-17-2010, 03:57 AM
After running a method dinamically reload same page? - by El Forum - 08-17-2010, 04:14 AM



Theme © iAndrew 2016 - Forum software by © MyBB