News Feed
Sections




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

Symfony Blog:
New in Symfony 2.2 The new fragment sub-framework
February 26, 2013 @ 10:13:50

Fabien Potencier has new post post to the Symfony Blog today talking about a big update to the Symfony framework, the introduction of a new "fragment sub-framework". This framework (now a part of the HttpKernel) allows the handling of requests based on a few different strategies.

About a month ago, I merged a complete refactoring of the sub-requests management of Symfony. In fact, I created a whole new sub-framework to handle the rendering of resource fragments via different strategies. [...] Besides classical master requests, the HttpKernel component is now able to handle sub-requests. Let's me sum up the different strategies that are available: internal sub-requests, ESIs, HIncludes, and SSIs (in 2.3).

He talks some about each strategy and what situations they're best suited for and some sample code that shows the use of the "standalone" and "strategy" parameters. There's also new methods you can call (like "render_esi" or "render_hinclude") to work with the new features as well.

0 comments voice your opinion now!
subframework fragment symfony2 subrequest httpkernel


blog comments powered by Disqus

Similar Posts

Jakub Zalas' Blog: Managing object creation in PHP with the Symfony2 Dependency Injection component

Lineke Kerckhoffs-Willems' Blog: How to use the Symfony2 SonataAdminBundle

Fabien Potencier's Blog: Create your own framework... on top of the Symfony2 Components (part 6)

Piotr Pasich: CakePHP with Symfony’s2 router

Gonzalo Ayuso: Using the event dispatcher in a Silex application


Community Events





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


threedevsandamaybe framework podcast interview tips code release list symfony development deployment community api laravel series language introduction conference zendserver developer

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