CakePHP retrieving data from model using find(). Different array keys on production server

前端 未结 2 1736
逝去的感伤
逝去的感伤 2021-01-15 16:17

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:<

相关标签:
2条回答
  • 2021-01-15 16:26

    use $this->set(compact('currentPage',$currentPage));

    0 讨论(0)
  • 2021-01-15 16:34

    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

    0 讨论(0)
提交回复
热议问题