2017 © Pedro Peláez

symfony-bundle proxy-templating-bundle

Dynamic templating proxy references bundle for Symfony2.



Dynamic templating proxy references bundle for Symfony2.

  • Monday, June 30, 2014
  • by rafal.wrzeszcz
  • Repository
  • 1 Watchers
  • 1 Stars
  • 1,257 Installations
  • PHP
  • 1 Dependents
  • 1 Suggesters
  • 0 Forks
  • 1 Open issues
  • 5 Versions
  • 0 % Grown


ChillDev ProxyTemplating bundle

ChillDevProxyTemplatingBundle is a Symfony2 bundle that allows you to define globaly default templating engine for your system (for bundles that depends on this feature)., (*1)

Build Status Scrutinizer Quality Score Coverage Status Dependency Status, (*2)


This bundle is provided as Composer package. To install it simply add following dependency definition to your composer.json file:, (*3)

"chilldev/proxy-templating-bundle": "dev-master"

Replace dev-master with different constraint if you want to use specific version., (*4)

Note: This bundle requires PHP 5.4., (*5)


In order to use this bundle, load it in your kernel:, (*6)


use ChillDev\Bundle\ProxyTemplatingBundle\ChillDevProxyTemplatingBundle;

use Symfony\Component\HttpKernel\Kernel as BaseKernel;

class Kernel extends BaseKernel
    public function registerBundles()
        $bundles = [
            new ChillDevProxyTemplatingBundle(),

Enabe templating switching:, (*7)

            - "twig"
            - "php"
            - "default" # you need to add this engine to your configuration

And then configure proxy:, (*8)

    templating: "php"

See configuration options for details., (*9)


ChillDevProxyTemplatingBundle doesn't really provide any features. It's just a system-wide proxy templating redirector. All you need to do in order to pass template to proxy is to use it's name as engine, for example by rendering Bundle:Controller:action.html.default or by using @Template(engine="default") annotation. For more detailed examples see usage documentation., (*10)



Do you want to help improving this project? Simply fork it and post a pull request. You can do everything on your own, you don't need to ask if you can, just do all the awesome things you want!, (*11)

This project is published under MIT license., (*12)


ChillDevProxyTemplatingBundle is brought to you by Chillout Development., (*13)

List of contributors:, (*14)

The Versions