Download the PHP package pentium10/yii-remember-filters-gridview without Composer

On this page you can find all versions of the php package pentium10/yii-remember-filters-gridview. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package yii-remember-filters-gridview

yii-remember-filters-gridview

The ERememberFiltersBehavior Yii extension adds up some functionality to the default possibilites of CActiveRecord/Model implementation.

It will detect the search scenario and it will save the filters from the GridView. This comes handy when you need to remember them between navigation during page changes. For lot of navigation and heavy filtering, this functionality can be activated by just a couple of lines.

It supports default filter values and remember scenarios also. For example if you want to show only eg: Active Products, you can setup the default filter using this extension. Or if you have the same modal on different views, you can set different scenarios to remember state separated from each other. See the optional params under Advanced Functionalities and Scenarios section.

Please login to see the Demo image!

Requirements

Donate

Click here to donate

Resources

Install

We recommend installing the extension with Composer. Add this to the require section of your composer.json:

"pentium10/yii-remember-filters-gridview" : "dev-master"

You also need to include composer's autoloader:

Usage

Step 1

To use this extension, just copy this file to your components/ directory, add 'import' => 'application.components.ERememberFiltersBehavior', [...] to your config/main.php and paste the following code to your behaviors() method of your model

Step 2

Your actionAdmin() must not use unsetAttributes() as this was moved to the extension.

With this extension the actionAdmin instead of the classic

can be as simple as:

Advanced Functionalities

(if you use these functionalities please Donate)

Scenarios

(if you use these functionalities please Donate)

You can use scenarios to remember the filters on multiple states of the same model. This is helpful when you use the same model on different views and you want to remember the state separated from each other.
Known limitations: the views must be in different actions (not on the same view)

To set a scenario add the setRememberScenario call after the instantiation
Sample code:
`

This extension has also a pair Clear Filters Gridview

remember, filters, cgridview, gridview, store, reload, controller, model, behavior, interface, widget, stick, scenario

Change Log

CHANGELOG.md

Contributing

  1. Fork it.
  2. Create a branch (git checkout -b my_enhancement_name)
  3. Commit your changes (git commit -am "Added Sorting")
  4. Push to the branch (git push origin my_enhancement_name)
  5. Open a Pull Request
  6. Enjoy a refreshing Diet Coke and wait

All versions of yii-remember-filters-gridview with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.0
yiisoft/yii Version *
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package pentium10/yii-remember-filters-gridview contains the following files

Loading the files please wait ....