symfony - How to print HTML source code TWIG view's -
In my project I have to display a piece of HTML source code of a TUIG view (mainshort What can I see with and this piece of source code should be displayed in another TWIG view (Hence from other controller action). Thank you in advance for your help :) Do you have a separate template Trying to present the output HTML code from a controller? If so, you can use the render function with escape filters. This will present the controller feedback in an escaped string so that all the codes are visible to the end user. 'Ctrl + U' )
I am working with Symphony 2, is it possible and if so, how can I do this?
{{render (controller ('aquilblundle: comment: getcomment', {'id': comment.id})). Escape}} // | E
Comments
Post a Comment