Hello all, I'm having a bit of a problem with pagination...

I create my search form using the form helper, no problems there. Then
it sends the data up via GET which looks something like this:

http://..../search?sector=firm&state=NY&city=&area=&results=10

my controller code boils down to:

$jobs = $this->paginate($table, "state LIKE '$state' AND city LIKE
'$city' AND area LIKE '$area'");
$this->set('jobs', $jobs);

so far so good, i get the correct data back (e.g., 10 listings that
match the criteria)

in my view i use $paginator->options(array('url' => ....)) to set the
query string in the numbers and prev/next links

now everything is good up until this point and then it all goes pear
shaped (ok that's an exaggeration)

the problem is my prev/next and number links are in a form like this:

http://.../search/?sector=firm&state=NY&city=&area=&results=10/page:2

instead of

http://.../search/?sector=firm&state=NY&city=&area=&results=10&page=2

which is what i want..on top of it, the "/page:2" doesn't work, it
just gives me the first page because of how the controller is set up
(which may be wrong)

i've tried messing around with options but with no luck, has any one
had problems like this? is it a controller issue?

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

Reply via email to