php CodeIgniter-3.1.3 Tab paging and Anchor point -


i have tab, , access them "news#p1, news#p2, news#p3".but when paging today, url "http://local.test.com/home/news#p1/2".

controller

public function news($id) {        if ($id) {         $this_page=$id;         var_dump($this_page);            }      $page = (int)$this->uri->segment(3);      var_dump($page);     ...  } 

this paging html.

<ul class="pagination"> <li class="active"><a>1</a></li> <li><a href="http://local.test.com/home/news#p1/2" data-ci-pagination-page="2">2</a></li> <li><a href="http://local.test.com/home/news#p1/3" data-ci-pagination-page="3">3</a></li> <li><a href="http://local.test.com/home/news#p1/2" data-ci-pagination-page="2" rel="next">»</a></li> <li><a href="http://local.test.com/home/news#p1/5" data-ci-pagination-page="5">尾页</a></li> </ul> 

but var_dump($this_page), null. when remove anchor point, can jump. don't know why can't jump, when add anchor point. hope professional solve.thanks!

url part after # can't accessible through php. can use javascript window.location.hash getting it.


Comments

Popular posts from this blog

php - Vagrant up error - Uncaught Reflection Exception: Class DOMDocument does not exist -

vue.js - Create hooks for automated testing -

Add new key value to json node in java -