eps / jqgridbundle
Symfony2的JqGrid集成
dev-master
2013-10-17 12:56 UTC
Requires
- php: >=5.3.2
- doctrine/orm: 2.*
- knplabs/knp-paginator-bundle: *
- symfony/framework-bundle: 2.*
This package is not auto-updated.
Last update: 2020-01-01 18:01:29 UTC
README
为Symfony2实现的JqGrid。
兼容性: 已测试与Symfony > 2.0.12兼容(未测试> 2.1.x)
变更日志
2012-06-04: BC break - 更改渲染函数 jqgrid_js 为 jqgrid
安装
-
将此包添加到您的 vendor/ 目录中
在您的deps文件中添加以下行
[EPSJqGridBundle] git=git://github.com/michelpa/JqGridBundle.git target=/bundles/EPS/JqGridBundle运行vendor脚本
./bin/vendors install -
将"EPS"命名空间添加到您的自动加载器中
<?php // app/autoload.php $loader->registerNamespaces(array( 'EPS' => __DIR__.'/../vendor/bundles', // your other namespaces ));
-
在kernel中启用该包
<?php // app/ApplicationKernel.php public function registerBundles() { return array( // ... new EPS\JqGridBundle\EPSJqGridBundle(), // ... ); }
-
将资源添加到您的布局中
JS
bundles/epsjqgrid/js/i18n/grid.locale-fr.js bundles/epsjqgrid/js/jquery.jqGrid.min.jsCSS
bundles/epsjqgrid/css/ui.jqgrid.css -
配置
在config.yml中
eps_jq_grid: ~
或者如果您想指定日期格式(对于日期选择器),您必须在js和php格式(转换)中设置日期格式
eps_jq_grid:
datepicker_format: dd/mm/yy
datepickerphp_format: d/m/Y