duanri1985
2015-02-17 04: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.

图片转代码服务由CSDN问答提供 功能建议

我的机器上使用PHP5.4有一个工作分页代码 升级到PHP5.6后,分页保持不变 第一页。 当我点击下一页时,地址栏会显示页码(即: http:// mysite / page?page = 4 )。 但是,按钮仍然在第1页上。 相同的代码仍在我的Windows(WAMP)上使用PHP5.5。 Fyi,即时通讯使用Freebsd 9.1,Nginx,PHP5.6(已升级) 是否与PHP有关 本身,还是我错过了一些扩展?

找到了额外的信息, 我在这个应用程序上安装了laravel logviewer软件包。 这个包附带的分页也没有用。 我怀疑,这与代码无关。 也许php或nginx配置。

  • 写回答
  • 好问题 提建议
  • 追加酬金
  • 关注问题
  • 邀请回答

3条回答 默认 最新

  • 普通网友 2015-02-23 16: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条)

相关推荐 更多相似问题