News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

NetTuts.com:
Working With Templates in Symfony 2
May 20, 2014 @ 10:34:05

NetTuts.com continues their introductory screencast series today with the latest episode focusing on using templates in Symfony 2. Other parts of the series have looked at using controllers, routing and some of the basics of the framework.

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.

The screencast works with a sample application and a bundle to render the Twig template and includes examples of defining blocks of content and extending other templates. They also show you how to use layouts and pass data out to the template to be rendered on load. You can watch the screencast in-page or over on YouTube.

0 comments voice your opinion now!
introduction symfony2 template twig screencast series

Link: http://code.tutsplus.com/tutorials/working-with-templates-in-symfony-2--cms-21172

blog comments powered by Disqus

Similar Posts

Chris Hartjes: 5 Minute TDD

Zend Developer Zone: Zend and IBM Post QEDWiki Screencast

CodingThis.com Blog: Quick XML-to-HTML Templating in PHP Using SimpleXML

Allan MacGregor: Design Patterns in PHP: Singletons

NetTuts.com: Statamic 101


Community Events





Don't see your event here?
Let us know!


framework opinion list introduction artisanfiles community library voicesoftheelephpant laravel conference symfony release podcast version interview language tool composer series security

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework