承接 kba-team/cakephp-filter-plugin 相关项目开发

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

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

kba-team/cakephp-filter-plugin

最新稳定版本:v2.1.0

Composer 安装命令:

composer require kba-team/cakephp-filter-plugin

包简介

Filter is a CakePHP plugin which enables you to create filtering forms for your data in a very fast and simple way, without getting in the way of paging, sorting and other "standard" things when displaying data. It also remembers the filter conditions in a session, but this can be turned off if unde

README 文档

README

About

Filter is a CakePHP plugin which enables you to create filtering forms for your data in a very fast and simple way, without getting in the way of paging, sorting and other "standard" things when displaying data. It also remembers the filter conditions in a session, but this can be turned off if undesirable.

It also features callback methods for further search refinement where necessary.

IMPORTANT: These instructions are for CakePHP 2.0. If you're using CakePHP 1.3.x the correct path to unload the plugin is app/plugins/filter/. More importantly, if you're using CakePHP 1.3.x you should use the 1.3.x version of this plugin, not the latest version from GitHub.

Usage

First, obtain the plugin. If you're using Git, run this while in your app folder:

composer require kba-team/cakephp-filter-plugin

To use the plugin, you need to tell it which model to filter and which fields to use. For a quick tutorial, visit https://github.com/lecterror/cakephp-filter-plugin/wiki/Basic-usage

If you need more than this plugin provides by default, there are ways to customize it, see this article: https://github.com/lecterror/cakephp-filter-plugin/wiki/Advanced-usage

In order to generate GET forms add 'type' => 'GET' to the filterForm() or beginForm() options array.

Testing

To run PHPUnit tests:

Test/phpunit.sh <args>

Execute shell for manual testing

docker pull devkba/cake2-app-template:staging
docker run \
    --rm \
    --init \
    -it \
    -v "$(pwd)":/cakephp-filter-plugin \
    -e DEBUG=0 \
    -e BEFORE_SCRIPT="/cakephp-filter-plugin/Test/before_script.sh" \
    -e AFTER_SCRIPT="/cakephp-filter-plugin/Test/after_script.sh" \
    devkba/cake2-app-template:staging

Contributing

If you'd like to contribute, clone the source on GitHub, make your changes and send me a pull request. If you don't know how to fix the issue, or you're too lazy to do it, create a ticket, and we'll see what happens next.

Important: If you're sending a patch, follow the coding style! If you don't, there is a great chance I won't accept it. For example:

// bad
public function drink() {
    return false;
}
// good
public function drink()
{
    return true;
}

Licence

Multi-licensed under:

统计信息

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

GitHub 信息

  • Stars: 0
  • Watchers: 0
  • Forks: 22
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-3.0-or-later
  • 更新时间: 2021-06-23

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固