QafooLabs / QafooLabsNoFrameworkBundle

Bundle to use Symfony controllers without depending on the Framework. Moved to GyroProject MVC-Bundle
https://github.com/gyro-project/mvc-bundle
123 stars 13 forks source link

Add Template Response #2

Closed beberlei closed 10 years ago

beberlei commented 10 years ago

A response class that accepts a template name and arguments and the ViewListener renders it.

Variant A (Full Template Name):

return new TemplateResponse('FooBundle:Bar:baz.html.twig', array());

Variant B (Action name only, Bundle+Controller inferred):

return new TemplateResponse('baz.html.twig', array());
beberlei commented 10 years ago

Implemented, slightly different with the action names, see README