duanri1985 2015-02-16 20:03
浏览 47
已采纳

升级到PHP5.6后,Laravel4 Pagination无法正常工作

I have a working pagination code on my machine using PHP5.4 After upgrading to PHP5.6 the pagination stays on the first page. When i clicked on the next page, the address bar show the page number (i.e: http://mysite/page?page=4). However, the button still on page 1. The same code still working on my Windows (WAMP) using PHP5.5. Fyi, im using Freebsd 9.1, Nginx, PHP5.6 (upgraded) Is there something to do with PHP itself, or am i missing some extensions?

Found extra information, I have installed laravel logviewer package on this app. The pagination that come with this package also didn't works. I suspect that, this is nothing to do with code. Maybe php or nginx config.

  • 写回答

3条回答 默认 最新

  • 普通网友 2015-02-23 08:39
    关注

    i finally figured it out. it's true about nginx rewrite. my previous setting in vhost file is: try_files $uri $uri/ /index.php?q=$request_uri;

    i changed to try_files $uri $uri/ /index.php?$query_string;

    this problem is clearly resolved.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(2条)
编辑
预览

报告相同问题?

手机看
程序员都在用的中文IT技术交流社区

程序员都在用的中文IT技术交流社区

专业的中文 IT 技术社区,与千万技术人共成长

专业的中文 IT 技术社区,与千万技术人共成长

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

关注【CSDN】视频号,行业资讯、技术分享精彩不断,直播好礼送不停!

客服 返回
顶部