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
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);
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.