This plugin will make searching paginated lists in your CakePHP application easy. This branch is for CakePHP 2.0+
This plugin is licensed under the MIT license
- Navigate to your plugins directory and use the following command:
git clone git://github.com/sitedyno/Filter.git Filter - Add the filter component to the components array of the controller you want to filter on:
var $components = array('Filter.Filter'); - Add the filter helper to the helpers array of the controller you want to filter on:
var $helpers = array('FIlter.Filter'); - Generate a filter form (table row) in your view:
<?php echo $this->Filter->tableRowForm('Post', array('Post.id', 'Post.title', 'Post.content'));?> - For advanced configuration see: Configuration