On most of my sites pagination across the site is styled in exactly
the same way so I add the HTML/PHP into an element meaning any future
changes to pagination are made in one place.
At the top of my element I include the following which adds any passed
arguments into the paginator's options.
if
I have models: 'Client' hasMany 'Service' and 'Contact'...
When I view a Client record I want to see the Service and Contact
records associated with that Client. Works fine till I try to paginate
the Service recordsActually, first page works, but the second page
seems to go to the wrong URL.
Hello,
You will have to pass the argument in the view like this:-
?php
$paginator-options(array('update'='element_name','url'=array('controller'='controllername',
'action'='action_name',$yourargument)));?
for e.g if u are passing $id to ur controller then in the view u should
write somehing