nmb/twig-extensions-bundle
Composer 安装命令:
composer require nmb/twig-extensions-bundle
包简介
Add some functions and filters to twig
README 文档
README
Some Twig functions and filters i wanna use on my symfony projects
Installation
Add NmbTwigExtensionsBundle to your composer.json
{ "require": { "nmb/twig-extensions-bundle": "dev-master" } }
Download the bundle by runung the command
$php composer.phar update nmb/twig-extensions-bundle
Add the bundle to your app/AppKernel.php
<?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Nmb\TwigExtensionsBundle\NmbTwigExtensionsBundle(), ); }
Usage
In your twig template
{{ getParameter('my_parameter') }}
统计信息
- 总下载量: 17
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2013-07-21