Category Covered

cakephp pagination condition

How can i set conditions on cakephp paginate?

Try to follow the sample hope it will help you.

$this->paginate = array('limit' => 10, 'page' => 1,   'conditions' => array('Content.category_id' => '1'),
    'order'=>array('name'=>'asc'),       
    );