On Sun, Jan 23, 2011 at 12:58 PM, opike <[email protected]> wrote: > I have a view that will potentially be displaying thousands of records > and I want to add search/filtering controls to the top of the index > view. I'm working with cake 1.3.7 and I did some preliminary research > and it doesn't appear that 1.3.7 provides this type of functionality > out of the box. A couple of questions: > > 1) Will version 2.0 include any enhancements in this area? > > 2) Are there any plugins or add on components that can be obtained > that will add this functionality? > > 3) If I have to build it from scratch, I'm thinking that I will have > to: > a) Add the necessary controls to index.ctp (duh) > b) add logic to the index() function in the controllers php to to > filter the data (based off of the inputs from step a ) that ends up > being passed to index.ctp.
You could do it with AJAX calls. Maybe add a $filters param to index function index($filters = null) $filters could then be checked for 'limit', 'search' keys, etc. which would be passed depending on which filter request was made. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
