Hi.

I am posting data (search term) to a controller to run a query and get back 
subsequent results, which works fine, however when trying to use this with 
the paginator class moving to the next page breaks everything.  My question 
to the community is, how would I, in my circumstance paginate post data 
results (since they are not in the URL)

Controller Code

# $this->data came in from a form post 

$searchterm = $this->data['Model']['formfieldname'];

$query = $this->paginate('Model', array('Model.Field LIKE' => '%' . 
$searchterm . '%'));

$this->set('searchresults', $query);

I saw 2 articles on how to do this but the situations are completely 
different.  This should help others as well.  Have at it.

Thanks again!

-- 
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

Reply via email to