This Symfony2 bundle provides integration for the Smarty3 template engine.
Caution: This bundle is developed in sync with Symfony's repository. For maximum compatibility with Symfony 2.0.x, you need to use releases 1.0.x of this bundle.
SmartyBundle is composer-friendly.
{
"require": {
"noiselabs/smarty-bundle": "dev-master"
}
}
Now tell composer to download the bundle by running the command:
$ php composer.phar update noiselabs/smarty-bundle
Composer will install the bundle to your project's vendor/noiselabs
directory.
Enable the bundle in the kernel:
<?php
// app/AppKernel.php
public function registerBundles()
{
$bundles = array(
// ...
new NoiseLabs\Bundle\SmartyBundle\SmartyBundle(),
);
}
# app/config/config.yml
framework:
templating: { engines: ['twig', 'smarty'] }
For other installation methods (Symfony-2.0 vendors script or git submodules) please refer to the documentation below.
Complete documentation is available in the SmartyBundle website.
If you want to contribute to SmartyBundle please switch to the following branches when contributing to one of these extensions.
- Assetic - assetic-extension
- Twitter Bootstrap - twitter-bootstrap
- Forms - form-extension
- Security - completed, merged into master
This bundle is licensed under the LGPLv3 License. See the LICENSE file for details.
Vítor Brandão - [email protected] ~ twitter.com/noiselabs ~ blog.noiselabs.org
See also the list of contributors who participated in this project.
Bugs and feature requests are tracked on GitHub.