How to perform a redirect and pass on data? I have a Controller Action which should pass on some data from one (CP) template to another:


Template 1 (plugin/form): Form sends data
Controller redirects data to Template 2
Template 2 (plugin/): Shows data


I don't want to just load the template but redirect to plugin/ and show the data, any ideas?

public function actionTemplate()
{
    $data = 'Something';
    $this-&gt;redirect( 'plugin_handle' ); //Pass on $data to 'plugin/'
}


Edit 1:

Or is there a way to send a post-request to a "route" rather then an actionController?
I would suggest either using query parameters in your redirect method, or storing it in session variables (which should be no different than regular PHP).