I just wrote a start for a filter which I can easily add above scaffolded tables. Scaffolding is great, but I want a form above to limit the number on results based on my parameters. It is not finished, but I just post what I have, any tips, let me know. Ok, it uses a helper and a component.Suppose you have a tables projects and you use paginate in your index() function in your controller. Change it to:$this->set('projects', $this->paginate(null, $this->Activeview->getConditions($this->params)));This will use your parameters from the form in your view to fetch the records based on your limitations.In your view, for example use:echo $activeview->filter('projects', array( "name" => __('Name', true), "targetgroup" => __('Doelgroep', true) ));or search in related tables:echo $activeview->filter('communication', array( "Person.surname" => __('Person', true), "note" => __('Note', true) ));Let me know what you think about this.
