look up $recursive in the cookbook. it should tell you alot about that.
Also, once you have looked that up you should be able to paginate with the
basic
$this->paginate('Model' array('field conditions'));
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
C
Hi,
I have categories and posts tables are in many-to-many relationship
through the table categories_posts table. Both Category and Post
models contains hasAndBelongsTo relationship.
In the view action of categories controller, I able to view the
specified category and listing all related posts w
Alright the good man Daniel Hofstetter of cakebaker.42dh.com
posted a solution for me after I had asked him the same question.
Here is the link:
http://cakebaker.42dh.com/2007/10/17/pagination-of-data-from-a-habtm-relationship/
Hope this helps all who might need it.
Daniel
On Oct 15, 11:26
Sorry for leaving that part out. the Cake version is 1.2. Thanks
guys.
On Oct 15, 7:08 pm, rtconner <[EMAIL PROTECTED]> wrote:
> What version of cake?
>
> Nate left this code for 1.2:http://bin.cakephp.org/saved/21687
--~--~-~--~~~---~--~~
You received this
What version of cake?
Nate left this code for 1.2: http://bin.cakephp.org/saved/21687
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to cake-php@googlegroups.com
Read this thread:
Pagination for model with association (cake 1.1)
Wayne
On 10/15/07, DGPhoebus <[EMAIL PROTECTED]> wrote:
>
> Okay I have a Products table, a Categories table and a
> Categories_Products join table. A HABTM relationship has been
> defined. So when I hit /categories/view/4
Okay I have a Products table, a Categories table and a
Categories_Products join table. A HABTM relationship has been
defined. So when I hit /categories/view/4 I get the Category
definition pointed to by $id=4 and all the products assigned to
category #4.
How do I paginate the products? Pl