sergeil / extjsintegration-bundle
简化ExtJs在服务器端集成的工具。
v3.0.0
2022-01-31 18:52 UTC
Requires
- php: >=7.1
- sergeil/aux-bundle: ^1.1
- sergeil/expander-bundle: ^1.2
Requires (Dev)
- doctrine/doctrine-bundle: ^2.0
- phpunit/phpunit: ^5.7
- symfony/symfony: ^4.4
Conflicts
- doctrine/persistence: <1.3
README
该包将包含一些在客户端使用ExtJs库时非常有用的工具类。
包含内容
目前还不多
- QueryBuilder\ExtjsQueryBuilder -- 在客户端为您的
Ext.data.Store
构建正确的Doctrine查询。允许轻松利用 'remoteFilter', 'remoteSort' 以及分页。该类足够智能,能够在您需要根据关联实体排序(ORDER BY)时构建正确的查询。 - DataMapping\EntityDataMapperService -- 将客户端来的数据映射到您的实体上
请阅读内联phpDoc以获取有关如何使用类的更多信息
安装
-
将包添加到您的 composer.json
{ "require": { "sergeil/extjsintegration-bundle": "~1.0" } }
-
将包添加到您的
/app/AppKernel
new Sli\ExtJsIntegrationBundle\SliExtJsIntegrationBundle(), new Sli\AuxBundle\SliAuxBundle()