Re: Help with pagination on view page

2010-02-09 Thread WebbedIT
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

Help with pagination on view page

2010-02-07 Thread Javier
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.

Re: Help with pagination on view page

2010-02-07 Thread Amit Rawat
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