In Cake 1.2, just use the paginator.

In your controller, have a search action which sets the search
conditions:

$this->paginate['conditions'] =  array('myfield' => 'mysearch' );
$this->set( 'mydata', $this->paginate() );

You might want to store the search conditions in the session, also, if
your search is supposed to by dynamic.

To find out how the view has to look like, just look at how 'index'
views are baked by the bake script (bake console shell, as of now).


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to