开发者

How to show paginated results for the category items of the selected category in CakePHP?

开发者 https://www.devze.com 2023-01-09 22:40 出处:网络
Currently i\'m having a problem with the pagination of some results. The problem is the following: I have a website with 3 tables: categories, categories_companies and companies. In a many-to-many re

Currently i'm having a problem with the pagination of some results. The problem is the following:

I have a website with 3 tables: categories, categories_companies and companies. In a many-to-many relationship. When i select one category, it shows th开发者_运维百科e companies that belongs to the selected category. My problem is here! I don't know how to make it to show only 10 companies per category.

Regards


did you read this?

class RecipesController extends AppController {

    var $paginate = array(
        'limit' => 25,
        'order' => array(
            'Post.title' => 'asc'
        )
    );
}
0

精彩评论

暂无评论...
验证码 换一张
取 消