Try something like:

$this->paginate = array(
        'conditions' => array(Project.id => $ProjectIdArray),
        'limit' => 20
);

$projects = $this->paginate('Project');

// debugging in controller ;-)
// print_r($projects);

$this->set(compact('projects'));

then add the paginator links in the view 
(http://book.cakephp.org/view/1233/Pagination-in-Views)

Andras Kende
http://www.kende.com

On Aug 12, 2010, at 12:24 AM, arif hossen wrote:

> Dear All,
> 
> I need pagination below query : 
> 
> $projectTable = $this->Project->findAllById($ProjectIdArray);
> 
> Please give me suggestion......
> 
> -- 
> Regards,
> Mohammad Arif Hossen
> Software Enginner at
> Epsilon Consulting and Development Services(ECDS)
> www.ecds-tech.com
> www.arifhossen.wordpress.com
> Cell: +88 01714355911 
> 
> 
> Check out the new CakePHP Questions site http://cakeqs.org and help others 
> with their CakePHP related questions.
>  
> You received this message because you are subscribed to the Google Groups 
> "CakePHP" group.
> To post to this group, send email to cake-php@googlegroups.com
> To unsubscribe from this group, send email to
> cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
> http://groups.google.com/group/cake-php?hl=en

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to
cake-php+unsubscr...@googlegroups.com For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en

Reply via email to