Hostinicon
GET HOSTING FROM $3.95/MO PLUS A FREE YEAR ON TUTS+ (RRP $180). HURRY OFFER LIMITED. Check it out
Advertisement

Working With Templates in Symfony 2

by
Gift

Get a free year on Tuts+ this month when you purchase a Siteground hosting plan from $3.95/mo

This post is part of a series called Working with Symfony 2.
Working With Controllers in Symfony 2
Creating Reusable Forms in Symfony 2
Today, let's learn about Symfony 2's Twig Templates. With Twig, you can seamlessly and painlessly integrate your PHP and HTML together, giving you a very clean looking presentation of your view code, without all the clutter of PHP tags, an overabundance of parenthesis, or semicolons. Instead, we have a simple and elegant syntax that we can use. 


Hopefully you now have a better understanding of how to get started using Symfony 2's Twig templates. There's so much more that Twig can do for you. Please refer to the documentation for more details. Thanks for watching.
Advertisement