I use the stand alone HttpFoundation
component of Symfony in my MVC app, and native PHP files for the view templates (not Twig).
The functions in the controller can successfully execute a URL redirection to the template path as follows:
return new RedirectResponse('path_to_php_file');
If I pass also parameters with this syntax, how to retrieve them on the PHP file?
return new RedirectResponse('path_to_php_file', 302, array('params' => 'sometext'));