PHP Zend Framework - How to Get Request URI Fragment from Request Object? -


For example, say I have a URI http://127.0.0.1/somecontroller/someaction#12345 which takes me to some controller controller in some action () action. From there, I request $ this-> getRequest () from the object.

is able to retrieve the requested object; I am also able to get various information about the URI from the requested object.

But, how can I retrieve the piece (for example, in the later part of "# 12345")? Class = "post-text" itemprop = "text">

The fragment part of the URL is never sent to the server via GET requests (or that Any type of HTTP request for the matter), the only way you can get it is if you write a JavaScript snippet that parses the URL and for example Ajax sends this piece back to the server.

This can not be done with PHP only.


Comments

Popular posts from this blog

sql - dynamically varied number of conditions in the 'where' statement using LINQ -

asp.net mvc - Dynamically Generated Ajax.BeginForm -

Debug on symbian -