I activated Configure::write('Routing.admin', 'admin'); in my core.php
file.

I have set up an admin_index.ctp view under a controller called
wolistings . (wonenlistings originally, it is dutch for apartment or
houselistings).
I access the view from here: /admin/wolistings and it works fine.
Pagination is working.

However, the next (>>next) link produces this: xxxx.xxx/admin/
wolistings/admin_index/page:2/limit:4 . And that ofcourse, doesn't
work, because the admin_index action is inserted into the url. I found
that this does work: http://limburgmarkt/admin/wolistings?page=2&limit=4
. That takes me to the second page and I get the rest of the results.
However, that link is not the one being generated automatically.

So how can I fix this? I can't figure out how to create the >>next
link properly.

This is what I have in the admin_index view for the >>next link: echo
$paginator->next('next >>', null, null, array('class'=>'disabled'));

I've also tried other varieties from other posts from this group like:
array('url' => $this->params['pass'] , into the second parameter. But
nothing works.

Is this because I'm using admin routes? Should I not use them? Or is
this fixable? thanks!


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