Tuesday, November 9, 2010

Get Raw Data in the Template in Symfony

echo $page->getRawValue()->getContent();
The $page variable is the model object and the getContent method gets the content column/text which contains HTML tags... To avoid html entities, you have to use the getRawValue method.

No comments:

Post a Comment