arunajasmine 0 Newbie Poster

Hi,

i am trying to use the pagination concept in Cakephp for my application ..

$allreports=$this->paginate('Report',array('Report.user_id'=>$userId));

i am trying to have a group condition in the above query like 'group'=>array("Report.report_id") .. i m not awarre of giving that in this paginate..

where in

var $paginate = array( 'limit' => 5, 'order' => array( 'Report.report_id' => 'desc' ) );

where to place this group condition for the pagination to work..

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.