dqj5046 2015-07-27 16:53
浏览 20


I'm trying to "remove" the thread of my application when the pagination is used.

So I have a thread and the URL to that tread is http://localhost/rebelbb/Thread-test. When I want to Go to paginate so http://localhost/rebelbb/Thread-test?page=2 Then It needs to hide the thread. What I got now:

@if(Request::url() == Config::get('app.url').'/Thread-'.$threads->title)

But that doesn't work...

So anyone who has an tip?

How am I be able to hide the topic when the URL isn't http://localhost/rebelbb/Thread-test or http://localhost/rebelbb/Thread-test?page=1 ?

  • 写回答

1条回答 默认 最新

  • dsjklb0205 2015-07-27 17:03

    You can check in the view if there is page parameter set by using:


    or you can check if the page is not the first one by doing:

    @if(Request::get('page', 1) != 1)
    本回答被题主选为最佳回答 , 对您是否有帮助呢?



  • ¥15 Mapreduce是正常的,在运行其他jar包时并没有任何问题,只是在做LogCount.jar 时出的问题。如图所示
  • ¥15 ImportError: DLL load failed while importing _iterative: 找不到指定的模块。
  • ¥15 如何通过交互分析得出某高危患者对放疗获益更多
  • ¥15 相关性分析中,p<0.05, r=0.29,怎么评价相关性呢
  • ¥15 docker部署Mongodb后输入命令报错?
  • ¥15 将下列流程图转变成python程序代码
  • ¥15 我需要全国每个城市的最新小区名字等数据。
  • ¥15 开发一个小区生态的小程序
  • ¥15 如何解决Excel中dependent dropdown list 的问题
  • ¥15 MddBootstrapInitialize2失败