Hello, I am new to CakePHP and trying the following:

I have a search controller that redirects to the Model to be searched,
passing the search term a query string:

/cake/media/search?term=foo

Then from the search() method in the controller, I call

$this->set('media', $this->paginate(Medium, $conditionStr));

And the "search" view basically just includes the "index" view.

Now, what I'm looking for is how to modify my code so that the column
headings and the next page items etc in the index view automatically
include the search term parameter. For instance, the page 3 link
should link to /cake/media/search/page:3?term=foo instead of /cake/
media/search/page:3.

What's the Cake-way of doing this? Manually attaching
$_SERVER['QUERY_STRING'] seems very sloppy and it also includes the "?
url=media/search" parameter...

Thank you for your time!

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to