开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜