Re: Pagination and complex conditions

2009-04-06 Thread nga

Forgot to mention i need to display Items with list of buckets they
belong to.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Pagination and complex conditions

2009-04-06 Thread nga

Problem seems pretty easy from business point of view.

Situation:
I ve got 2 Models:
Item , Bucket
These models are related with buckets_items table (HABTM).
Now i want to display all Items from certain bucket or set of buckets.
conditions for bucket look like this:
$condition=array("Bucket.property"=>array(2,4,56,12));

Question is:
How to paginate list of Items from these certain Buckets?

Ive spend few hours already and havent found any clear solution.
Bussiness requirements seem to be easy but i can t find easy cakewise
solution .

N

code sample appreciated

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---