cakephp-filter-plugin
cakephp-filter-plugin copied to clipboard
A general filtering/search plugin for CakePHP apps
``` Deprecation Notice: Class Filter\Test\TestCase\Controller\Component\FilterTestCase located in plugins/Filter/tests\TestCase\Controller\Component\FilterComponentTest.php does not comply with psr-4 autoloading standard. It will not autoload anymore in Composer v2.0. in phar://bin/composer.phar/src/Composer/Autoload/ClassMapGenerator.php:201 Deprecation Notice: Class Filter\Test\TestCase\DocumentCategoriesTable located...
Filtering for relations configured this way (associative conditions) was NOT working: ``` php var $hasOne = array('Located' => array('conditions' => array( 'Located.model' => 'Employee', ))); ``` Filtering for relations configured...
In FilterComponent::beforeRender, when there's a `selector` specified, you check to see if a model has the specified method... ``` php if (!method_exists($workingModel, $settings['selector'])) { // trigger the error ``` ......
Added the ability to filter on date range. Automatically sets up two date dropdowns - From date and to date
Included a short example
CakePHP v2.3, PHP v5.4 The FilteredBehavior returns an empty $query['conditions']-array. A little research learned me this: function beforeFind(Model $Model, $query) { ... $settings = $this->settings[$Model->alias]; $values = $this->_filterValues[$Model->alias]; ``` foreach...