Maybe this fragment will help. It allows pagination of the results
from a search query. there was something I never managed to do but I
don't recall what - maybe it was do the search and order the columns
at the same time.
if($limpio)
{
$searchText = ""; // Clear the search
}
else
{
$searchText = $this->data['Gestiona']['searchText']; // Get
the search text from the search form
}
if(!empty($searchText))
{
// search more than one field
$conditions = array("or"=>(array('text' => 'LIKE %'.
$searchText.'%', 'tags' => 'LIKE %'.$searchText.'%')));
}
$results = $this->paginate('Bloc',$conditions);
On Jun 18, 10:49 am, teum <[EMAIL PROTECTED]> wrote:
> Still can't get the paginator working :(
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To post to this group, send email to [email protected]
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
-~----------~----~----~----~------~----~------~--~---