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->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?