I’m posting to a controller. I need to pass those variables to another view that will process the data and post those values to an outside url.
I tried this. But it didn’t work. using the code
return go(/url)
works, but passes no data. I don’t want to pass back to the original view. I want to pass this data back to another view.
I tried this but it doesn’t work.
$data = array(
'foo' => 'bar'
);
return array('travelpost', $data);
Any suggestions. If I could post to an website and redirect that post. That would be great to know. For instance. Once my controller script ends. Then instead of passing into the view I’m able to post to an outside website and have the browser redirect to that outside url. For now I have the other code, I just need to pass the variables from my controller into another view. Then from there I can manipulate with javascript and redirect the browser.
Recap. Pass $variables in an array from Controller to View.
- Post happens.
- $variables are created in controller
- Controller passes to a unique view that is not the same return from the original view.
- New view receives values.
// I have this part down. The stuff below. - Browser redirects.
Thanks.