Welcome Guest, Not a member yet? Register   Sign In
redirect('dashboard', $data)
#2

[eluser]beemr[/eluser]
redirect just sends a redirect header, so the only way to pass data is through the URL. You could redirect to example.com/dashboard/index/user/155.

If dashboard is a method in the same controller, you could just call that method rather than redirecting to it.

Finally, if you don't mind extending the core there are libraries such as Modular Extensions and Matchbox that should provide what you're looking for. I know of a core hack called Controller Forwarding or maybe just Forward that will let you forward your data to the default method of another controller.


Messages In This Thread
redirect('dashboard', $data) - by El Forum - 09-01-2008, 11:17 AM
redirect('dashboard', $data) - by El Forum - 09-01-2008, 01:46 PM
redirect('dashboard', $data) - by El Forum - 09-01-2008, 03:40 PM



Theme © iAndrew 2016 - Forum software by © MyBB