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 'Ctrl + U' )

and this piece of source code should be displayed in another TWIG view (Hence from other controller action).
I am working with Symphony 2, is it possible and if so, how can I do this?

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.

  {{render (controller ('aquilblundle: comment: getcomment', {'id': comment.id})). Escape}} // | E   

This will present the controller feedback in an escaped string so that all the codes are visible to the end user.

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -