If you are considering retrieving the category ids and use them in the
pagination, then you just do that, using find('list') and array_keys
to get all the ids (or use find('all') and Set::extract). Give
pagination your conditions ('Model.category_id' => $theIds).
If the above is not what you wanted, please clarify :)
Enjoy,
John
On Mar 4, 6:24 am, "Dave" <make.cake.b...@gmail.com> wrote:
> Stumped on this one. i have an existing database i need to paginate using
> threaded (or best option you can think of). i manully went thru (350)
> products and categories and added the parent_id category_id but my problem
> is if this makes sense:
> 3 Top Categoreies (new, used, specials)
> These have sub categoreies so thats now linked to the parent_id of the top
> 3. But these sub categoreies have sub_sub categories
> so sub category has parent_id to top category and sub_sub parent_id is
> matched with sub category....
>
> So user go to used/ i need to get all used products
> used/cars/ pulls only used cars
> used/cars/honda refines it even more
>
> What is the best way to accomplish this and pass it to paginate?
>
> Thanks,
>
> Dave
Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions.
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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
No comments:
Post a Comment