brown298/data-tables-bundle
最新稳定版本:0.4.2
Composer 安装命令:
composer require brown298/data-tables-bundle
包简介
Adds DataTables functionality to Symfony2
关键字:
README 文档
README
This bundle adds DataTables ajax functionality to your Symfony2/Doctrine project.
Install
Add the package brown298\datatables to your composer.json
{
"require": {
"brown298/data-tables-bundle": "dev-master"
}
}
For more information about Composer, please visit http://getcomposer.org
Configure
Add Brown298DataTablesBundle to your application kernel
// app/AppKernel.php
public function registerBundles()
{
return array(
// ...
new Brown298\DataTablesBundle\Brown298DataTablesBundle(),
// ...
);
}
Assetic
As part of the composer requirements, both jQuery and DataTables are added to the vendor directory. You are welcome to use those files, or install your own. But both jQuery and DataTables are required to be added to your templates to use this bundle.
# config.yml
assetic:
assets:
data_tables:
inputs:
- %kernel.root_dir%/../vendor/datatables/datatables/media/js/jquery.js
- %kernel.root_dir%/../vendor/datatables/datatables/media/js/jquery.dataTables.js
{# Resources\views\base.html.twig #}
{% javascripts '@data_tables' %}
<script type="text/javascript" src="{{ asset_url }}"></script>
{% endjavascripts %}
For more examples and instructions, please visit http://code.rbsolutions.us/datatables/
统计信息
- 总下载量: 26.82k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 3
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: BSD
- 更新时间: 2013-10-30
