this code you post you probably made in model, right?

paginate() method exists in controller, not in model :)
--
Lep pozdrav, Tilen Majerle
http://majerle.eu



2011/9/28 heohni <heidi.anselstet...@consultingteam.de>

> Hi,
>
> I was reading about it and in my case I like the idea.
> I am just changing my logic to work this way.
>
> But I just come across this question:
>
> How about the pagination, how do I do this?
>
> function performSearch($id = null){
>   // creating all conditions
>   return $this->paginate();
> }
>
> But this returns me an error:
> Warning (512): SQL Error: 1064: You have an error in your SQL syntax;
> check the manual that corresponds to your MySQL server version for the
> right syntax to use near 'paginate' at line 1
> Query: paginate
>
> What is my problem here?
>
> --
> Our newest site for the community: CakePHP Video Tutorials
> http://tv.cakephp.org
> Check out the new CakePHP Questions site http://ask.cakephp.org and help
> others with their CakePHP related questions.
>
>
> 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
>

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


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

Reply via email to