Re: Pagination for hasMany assocation

2006-08-21 Thread AD7six
Hi All, nate wrote: var $paginate = array('limit' = 20, 'order' = ...); // Anything you can pass to Model::findAll can be set here Is it going to be possible to specify which relationships are included in the main model query in 1.2, or to specify constraints for subsequent queries (I´m

Re: Pagination for hasMany assocation

2006-08-20 Thread fr33dom
Hey again, Just checking to see if anyone had any thoughts on this issue. If it has been discussed and answered before I do apologise, a reference to that discussion / resource would be much appreciated. Cheers, Freedom --~--~-~--~~~---~--~~ You received this

Re: Pagination for hasMany assocation

2006-08-20 Thread nate
Pagination is being added to the core in Cake 1.2. Using 1.2 you can set up basic pagination on models or associated models by doing the following in your controller: var $paginate = array('limit' = 20, 'order' = ...); // Anything you can pass to Model::findAll can be set here That's to set

Re: Re: Pagination for hasMany assocation

2006-08-20 Thread Samuel DeVore
You, my good sir, are a tease ;) On 8/20/06, nate [EMAIL PROTECTED] wrote: Pagination is being added to the core in Cake 1.2. Using 1.2 you can set up basic pagination on models or associated models by doing the following in your controller: var $paginate = array('limit' = 20, 'order' =

Re: Re: Pagination for hasMany assocation

2006-08-20 Thread Mikee Freedom
fantastic, thanks for the heads up. On 21/08/06, Samuel DeVore [EMAIL PROTECTED] wrote: You, my good sir, are a tease ;) On 8/20/06, nate [EMAIL PROTECTED] wrote: Pagination is being added to the core in Cake 1.2. Using 1.2 you can set up basic pagination on models or associated