2017 © Pedro Peláez
 

library silex-twig-service-provider

An enhanced Twig Service Provider for Silex that includes the missing asset function

image

smartrock/silex-twig-service-provider

An enhanced Twig Service Provider for Silex that includes the missing asset function

  • Saturday, September 14, 2013
  • by smartrocklabs
  • Repository
  • 1 Watchers
  • 0 Stars
  • 22 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

SmartRock Silex Twig Service Provider

Enhanced Twig service provider that includes the twig "asset" function from Symfony, missing by default in Silex., (*1)

Installation

Use Composer., (*2)

Install Composer

In your command line, run:, (*3)

``` bash $ curl -s http://getcomposer.org/installer | php, (*4)


Or [download composer.phar][3] into the project root. ### Add FacebookServiceProvider to your composer.json "require": { "smartrock/silex-twig-service-provider": "dev-master" } Registering ----------- Add ```php $app->register(new SmartRock\Provider\TwigAssetServiceProvider());

after, (*5)

$app->register(new Silex\Provider\TwigServiceProvider());

Usage

Now you have access to asset('path/to/asset') in all your twig templates, besides all the other default functions provided by the original twig service provider, (*6)

License

The SmartRock FacebookServiceProvider is licensed under the MIT license., (*7)

The Versions

14/09 2013

dev-master

9999999-dev

An enhanced Twig Service Provider for Silex that includes the missing asset function

  Sources   Download

MIT

The Requires

 

by Tobal San

silex