Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Smarty3 template engine bundle for Symfony2
PHP Python Shell CSS

Fix #40 Invalid format for plugins_dir

Configuration now supports an array of plugin_dirs and the default
behaviour is to add directories without erasing the default plugins_dir
The default template_dir is also kept, by replacing setTemplateDir()
with addTemplateDir() in SmartyEngine.
latest commit 3e5ae35ec6
@noisebleed noisebleed authored


This Symfony2 bundle provides integration for the Smarty3 template engine.

Total Downloads Latest Stable Version Latest Unstable Version Build Status License

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.

1. Add SmartyBundle in your composer.json

    "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.

2. Enable the bundle

Enable the bundle in the kernel:

// app/AppKernel.php

public function registerBundles()
    $bundles = array(
        // ...
        new NoiseLabs\Bundle\SmartyBundle\SmartyBundle(),

3. Enable the Smarty template engine in the config

    # app/config/config.yml
        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 on Read the Docs.

Extensions under development

If you want to contribute to SmartyBundle please switch to the following branches when contributing to one of these extensions.


This bundle is licensed under the LGPLv3 License. See the LICENSE file for details.


Vítor Brandão - ~ ~

See also the list of contributors who participated in this project.

Submitting bugs and feature requests

Bugs and feature requests are tracked on GitHub.

Something went wrong with that request. Please try again.