CakePHP'de 1.3 paginating habtm ilgili veriler

0 Cevap php

I have searched high and low and tried multiple different solutions to this and I cannot seem to get it to work. Basically I have products and categories. Categories has and belongs to many products, and products HABTM categories. They are obviously related in a join table products_categories with id,product_id,category_id fields.

Basit bir tam fırında modelleri görünümleri ve denetleyiciler pişmiş sonra - bazı kategoriler ve ürünler eklenir ve onların ilişkileri Belirli bir kategori görünümü sayfasına gidebilir ve önceden pişmiş görünümü Bu kategoride ilgili ürünleri gösterecektir ayarlanır.

However, there is quite a few products (and will be more) and I am struggling to work out how to paginate all of this related data..as it is unfeasible to just simply list all of the products in a category (there could be 100s or more) Can anybody help? It seems there are quite a few unanswered topics on this and various different solutions, none of which I can get to work! Please help!

0 Cevap