I'm using Silex and I'm trying to redirect from one to another route, but with changing URL. I've tried a few things so far.
1) Using Sub-Request, works but URL does not change.
2) Using Normal redirect works but the data is sensitive and i don't want to pass it to the client and then back if not needed.
-> $app->redirect($app['url_generator']->generate('route_name', array( 'data' => $dataArray )));
What i actually want is to internally redirect with some data. But the URL has to change.
My Routes look like this:
$app->match('/some/url/', 'Acme\\Controller\::someAction')
->bind('route_name');
How to do that in Silex?
And yes i know that Silex is in maintenance mode.