hi i am using cakephp for my project but i am fetching problem when i generate result from custom query at that time i have no idea about that how to pass that result in to pagination.
so please help me.
thanks in advance.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This is covered in the book (http://book.cakephp.org/view/249/Custom-Query-Pagination)
Bascially, you would override paginate in the model you want to get the data from. If it will mess up the model, just create a new custom model that uses the same table and put the paginate override in there.