Hi, first of all sorry for my English!
Now ... This script is very useful! I just can not figure out how to use multiple filters at once. For example if I want to search by name and surname at the same time like to do? Add a field of research, but then as I pass the parameter?
Omar Abdallah - 2011-12-11 20:47:54 - In reply to message 1 from Roberto
here u set the search query from the search form:
$paginator->searchQuery = $searchQuery;
then set what fields to search in, you can set a single value for searching
// passing an array makes the search text to search in the name or the id
$paginator->fields = array('first_name','last_name');
The preceding statement will make it search for your query matching first name OR last name
for example:
query: peter
will return 'peter sellers' and 'alfred peter'