lidaa/twig-bundle

LidaaTwigBundle将添加大量Twig扩展(php, image, url, css, js, tag, session, number, sf, unset, form, html, ...)

安装次数: 15

依赖项: 0

建议者: 0

安全: 0

星标: 24

关注者: 3

分支: 2

开放性问题: 0

类型: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

提供大量Twig扩展。

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

要求

  • Twig版本1.5或更高
  • Symfony版本2.0.9或更高

安装

1- 在您的deps文件中添加以下行

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

2- 现在,运行 vendors 脚本来下载此bundle

$ php bin/vendors install

3- 将LidaaTwigBundle添加到您的应用程序kernel中

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

4- 将'Lidaa'命名空间添加到您的自动加载器中

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

扩展

待办事项

  • 添加DateExtension
  • 向JsExtension添加ajax和highlight功能