I am also getting the same problem. I want to paginate the search results in a fashion that the search url can be bookmarked. but i am not able to do so. The problem being that when the query is a get string, the submission to the searches controller looks like http://x.com/searches/index?q=mystring but i am not able to do the pagination. Mainly because i am not able to fetch q part on the second parameter. So the problem revolves around:
1. Fetching the get query string. 2. Pass it as url to the paginator->numbers. Any help would be appreciated. Thanks. On Fri, Oct 3, 2008 at 1:46 PM, harry <[EMAIL PROTECTED]> wrote: > > till now what i've made is a searches controller. this controller is > ment to search either a user or an entity in the database. > the first line of my index action is > function index($searchby = 'entity') > this funct works fine if i have to search for an entity, but when i > search for a user it shows me nothin > ///ly when i change the funct index to > function index($searchby = 'user') > i can search users from db but not content. > i consider it to be a problem in routing, but i can change the url > from the view part easily. > the problem which i am facing is that when i enter something in the > searchbar the url changes to: > http://localhost/searches/index?search=linkin > > and the url which i want to work on is: > /searches/index/entity and > /searches/index/user > can any one help me out with it > > pls > > > -- Thanks & Regards, Novice. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" 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 -~----------~----~----~----~------~----~------~--~---