I'm trying to get pagination working in Cake 1.2. I have the very
latest (using SVN checkout).
This:
<?=$paginator->next('Next >>', array('nextPage'=>2), null,
array('class' => 'disabled')); ?>
... renders as:
<a href="/groups/" nextPage="2" id="link7934" onclick=" return
false;">Next >></a><script type="text/
javascript">Event.observe('link7934', 'click', function(event){ new
Ajax.Updater('content','/groups/', {asynchronous:true,
evalScripts:true, onLoading:function(request)
{Element.show('spinner');}, onComplete:function(request, json)
{Element.hide('spinner');}, requestHeaders:['X-Update',
'content']}) }, false);</script>
When I click "next", it simply reloads the first page. There doesn't
seem to be anything in this indicating what page is loaded.
This:
<?=$paginator->counter(); ?>
... works great, and renders as:
Page 1 of 6
Any ideas?
Thanks,
Aaron
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---