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+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
No comments:
Post a Comment