承接 ns/filtered-pagination-bundle 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

ns/filtered-pagination-bundle

Composer 安装命令:

composer require ns/filtered-pagination-bundle

包简介

This bundle provides a paginated filter handler

README 文档

README

composer require ns/filtered-pagination-bundle

Edit AppKernel.php and add the bundle

...
new Knp\Bundle\PaginatorBundle\KnpPaginatorBundle(),
new Lexik\Bundle\FormFilterBundle\LexikFormFilterBundle(),
new NS\FilteredPaginationBundle\NSFilteredPaginationBundle(),

Usage

In a controller you request the filtered pagination bundle.

$query             = $this->get('doctrine.orm.entity_manager')->getRepository('...')->getSomeQuery();
$filteredPaginator = $this->get('ns.filtered_pagination');
list($form, $pagination, $redirect) = $filteredPaginator->process($request, $formType, $query, 'sessionKey');

if ($redirect) {
    return $this->redirect($this->generateUrl('practiceUsers'));
}

Limit Select

You can use the provided LimitSelectType to provide a 'X' results per page selector. If you do so you should include the main.js resource which handles detecting changes to the number per page.

统计信息

  • 总下载量: 13.66k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 4
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 4
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-09-08

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固