2017 © Pedro Peláez
 

symfony-bundle nsm-twig-extensions-bundle

image

newism/nsm-twig-extensions-bundle

  • Sunday, July 22, 2012
  • by leevigraham
  • Repository
  • 0 Watchers
  • 0 Stars
  • 4 Installations
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

** Not stable **, (*1)

Twig Extensions used in Newism projects.

This bundle should be used in conjunction with Symfony2., (*2)

Installation

Step 1: Download NSMTwigExtensionsBundle using composer

Add NSMTwigExtensionsBundle in your composer.json:, (*3)

{
    "require": {
        "newism/nsm-twig-extensions-bundle": "*"
    }
}

Now tell composer to download the bundle by running the command:, (*4)

``` bash $ php composer.phar update newism/twig-extensions-bundle, (*5)


Composer will install the bundle to your project's `vendor/bundles/NSM` directory. ## Add NSMTwigExtensionsBundle to your application kernel ``` php <?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new NSM\Bundle\NSMTwigExtensionsBundle\NSMTwigExtensionsBundle() ); }

Make the Twig extensions available by updating your configuration

``` yaml, (*6)

app/config/config.yml

nsm_twig_extensions: ~ ```, (*7)

The Versions