Hi all,

I'm a complete CakePHP newbie and building an application just so I
can learn. I've hit a brick wall with pagination when dealing with
HABTM models. Here's what I have:

Things model with fields 'id','name','description'
- HABTM Category
- belongsTo User
Categories model with fields 'id', 'name' (HABTM Thing)

The join table is categories_things

I have a bunch of Things in each Category. I want to be able to view a
category page like:

/categories/view/1 and it should list all Things that belong to
category with id of 1.

/categories/view/2 should list all Things (paginated) that belong to
category with id of 2

I want the Things to be paginated. For the life of me I can't figure
out how to do this. I'm also using the containable behavior because
each Thing has a few other models associated with it and I want to
pull that data using contain as well. Anyone have any idea how to do
this? What do I put in the controller and what do I use in the view to
get the pagination to work? I've read just about everything about this
issue for the last 8 hours and haven't been able to figure it out.
Thanks in advance.

Best Regards,

Tamim

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

Reply via email to