lidaa/twig-bundle

LidaaTwigBundle will add a lot of Twig Extensions (php, image, url, css, js, tag, session, number, sf, unset, form, html, ...)

Installs: 15

Dependents: 0

Suggesters: 0

Security: 0

Stars: 24

Watchers: 3

Forks: 2

Open Issues: 0

Type:symfony-bundle

2.0.10 2012-09-13 14:17 UTC

This package is not auto-updated.

Last update: 2024-09-22 03:54:19 UTC


README

Build Status

Provides a lot of Twig Extensions.

(php, image, link, css, js, tag, session, number, sf, unset, form, html, ...)

Requirement

  • Twig version 1.5 or later
  • Symfony version 2.0.9 or later

Installation

1- Add the following lines in your deps file:

[LidaaTwigBundle]
	 git=git://github.com/lidaa/LidaaTwigBundle.git
	 target=/bundles/Lidaa/TwigBundle

2- Now, run the vendors script to download the bundle:

$ php bin/vendors install

3- Add LidaaTwigBundle to your application kernel:

// app/AppKernel.php
public function registerBundles()
{
	 return array(
	     // ...
	     new Lidaa\TwigBundle\LidaaTwigBundle(),
	     // ...
	 );
}

4- Add the 'Lidaa' namespace to your autoloader:

// app/autoload.php
$loader->registerNamespaces(array(
	 //...
	 'Lidaa' => __DIR__.'/../vendor/bundles',
	 //...
));

Extensions:

TODO:

  • Add DateExtension
  • Add ajax and highligh to JsExtension