Controller, reloading the view with a parameter
Permalink
Hello.
Is it possible, from within a function in a single page controller, to reload the View and pass a parameter to it that can be used to affect the reload?
Is it possible, from within a function in a single page controller, to reload the View and pass a parameter to it that can be used to affect the reload?
Thanks for your reply.
I have been trying to use redirect in my controller, but cannot work out how to use it to reload the page and pass parameters back to the controller.
Even attempted a syntax of $this->redirect('url', 'action', 'parameter array'); and cannot appear to find the parameters after the redirect.
I have been trying to use redirect in my controller, but cannot work out how to use it to reload the page and pass parameters back to the controller.
Even attempted a syntax of $this->redirect('url', 'action', 'parameter array'); and cannot appear to find the parameters after the redirect.
Is it possible to call the variable in controller function on view page load?
if it is in js you want that, just change window.location and add get vars that you will then catch in your code.