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?

tangent
 
goutnet replied on at Permalink Reply
You can simply use Controller::redirect() in PHP (it is a wrapper for View::url() sending a Location header).

if it is in js you want that, just change window.location and add get vars that you will then catch in your code.
tangent replied on at Permalink Reply
tangent
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.
cjramki replied on at Permalink Reply
cjramki
Is it possible to call the variable in controller function on view page load?