Re: One model, multiple pagination in a single view with conditions?

2012-06-29 Thread 42startups
Gah that'd be right. First time jumping into CakePHP, the project I'm working on needs pagination of HABTM model (which was difficult), and multiple pagination of one model on the same view (which is impossible). I could have sorted these problems in no time with pure PHP. Oh well, I ended up

Re: One model, multiple pagination in a single view with conditions?

2012-06-27 Thread Mark Wratten
You can only paginate one way at a time, so presumably you can set the associations dynamically depending on the parameters from jQuery. Though separate models might be cleaner as you can hard-code the associations. Mark On Monday, June 25, 2012 11:41:16 PM UTC-4, 42startups wrote: As the

Re: One model, multiple pagination in a single view with conditions?

2012-06-26 Thread JonStark
I don't think it's possible with cake. Le mardi 26 juin 2012 05:41:16 UTC+2, 42startups a écrit : As the title suggests, is there a simple way to do this? Or should I create a separate model? Here's the code: $this-paginate = array('limit'=30); $this-Hashtag-Pin-bindModel(array('hasOne'