Sep 15, 2015
Symfony 2 – How to Get parent Request in twig embedded controller
When we want to use twig functions like render controller: symfony create a sub-request, with it own params for embedded controller. Sometimes we made have to need data from original Request object (GET/POST/FILES). It’s very simple, and we don’t need to assigned it to variable. In Request obejct there is dedicated method for this: createFromGlobals() […]