Symfony2 | Hide / remove title from answer / forward

I'm trying to put the result of 2 Controller in one controller, so I forward to the first using '$response = $this->forward('Bundle:Controller:functionXXX');".

in the controller ' functionXXXAction' I am returning a response using renderView.

The problem is that the forward function returns this header at the top of the page:

"HTTP/1.0 200 OK Cache-Control: no-cache Date: Wed, 24 Apr 2013 09:56:50 GMT"

Any solution to hide this from the page ?!

+6
source share
1 answer

, , , - . , : $ response = $this- > forward ('Bundle: Controller: functionXXX'); $response- > getContent();

+2

All Articles