I have the same exact code on my production and development servers but I seem to get different array keys when using find(\'first\') to retrieve data.
Development:<
use $this->set(compact('currentPage',$currentPage));
I remember this one... :P I had the same problem before
It's caused either by the php version or the mysql version. Check if your server passes the minimum requirements for your cake version
requirements for cakephp2.0
requirements for cakephp1.3
you can check them using a phpinfo();
Hope this helps