chilldev / proxy-templating-bundle
Dynamic templating proxy references bundle for Symfony2.
This package's canonical repository appears to be gone and the package has been frozen as a result.
Installs: 1 294
Dependents: 1
Suggesters: 1
Security: 0
Stars: 1
Watchers: 1
Forks: 0
Open Issues: 1
Type:symfony-bundle
Requires
- php: >=5.4
- chilldev/dependency-injection-extra: >=0.0.1
- symfony/dependency-injection: ~2.1
- symfony/framework-bundle: ~2.1
- symfony/http-foundation: ~2.1
- symfony/http-kernel: ~2.1
- symfony/templating: ~2.1
Requires (Dev)
- ext-xsl: *
- kriswallsmith/assetic: ~1.0
- phpmd/phpmd: 1.5.0
- phpunit/phpunit: 3.7.28
- satooshi/php-coveralls: 0.6.1
- sebastian/phpcpd: 1.4.3
- squizlabs/php_codesniffer: 1.4.7
This package is not auto-updated.
Last update: 2019-03-01 00:18:44 UTC
README
ChillDevProxyTemplatingBundle is a Symfony2 bundle that allows you to define globaly default templating engine for your system (for bundles that depends on this feature).
Installation
This bundle is provided as Composer package. To install it simply add following dependency definition to your composer.json
file:
"chilldev/proxy-templating-bundle": "dev-master"
Replace dev-master
with different constraint if you want to use specific version.
Note: This bundle requires PHP 5.4.
Configuration
In order to use this bundle, load it in your kernel:
<?php 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:
framework: templating: engines: - "twig" - "php" - "default" # you need to add this engine to your configuration
And then configure proxy:
chilldev_proxytemplating: templating: "php"
See configuration options for details.
Usage
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.
Resources
- Source documentation
- GitHub page with API documentation
- Issues tracker
- Packagist package
- Chillout Development @ GitHub
- Chillout Development @ Facebook
- Post on Wrzasq.pl
Contributing
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!
This project is published under MIT license.
Authors
ChillDevProxyTemplatingBundle is brought to you by Chillout Development.
List of contributors: