CakePHP pagination and the get parameters

前端 未结 8 567
逝去的感伤
逝去的感伤 2021-02-02 02:31

I have a problem with the pagination in my search page. When a user search something I have a url like domain.com/search/?s=keyword but paginator gives me links lik

8条回答
  •  野的像风
    2021-02-02 03:05

    I used Matyas solution, but for $keyword I did like this:

    $queryString = explode('?', $_SERVER['REQUEST_URI']);
    $options = array('url'=> array('controller' => 'post', 'action' => 'search', '?' => $queryString[1]));
    

提交回复
热议问题