Thank you Lorenzo.
Att.,
--
***Thiago Belem*
Desenvolvedor
Rio de Janeiro - RJ - Brasil
+55 (21) 8865.9250
thiagobelem.net
cont...@thiagobelem.net
*Skype / gTalk **»* thiago.belem.web
*LinkedIn* *»* br.linkedin.com/in/thiagobelem/pt*
Assando Sites*, curso de CakePHP *»* assando-sites.com.br
20
Check this out, this will solve your problem:
https://github.com/cakephp/CakeFest-2010-Workshop/blob/master/models/event.php#L88
--
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
I created my custom find-type with this code:
https://gist.github.com/1617962
Now when i run something like *$this->paginate('Model');* on my controller
i get a few warnings (the queries are executed):
*Notice* (8): Undefined index: count
[*/var/www/cakephp/2.0/lib/Cake/Model/Model.php*, line *25