Toggle navigation
Home
News
User guide
Themes
Extensions
Showcase
Login
Register
Login
Username:
Password:
Lost Password?
Remember me?
ZenphotoCMS Forum
Support
General support
function to get the current url
Member
Member
vincent3569
2011-09-15, 19:19
#1
hi
I had a look on documentation, but I don't have found what I am looking for.
Is there a function to get the current url ?
Member
Member
sbillard
2011-09-15, 19:58
#2
If you mean the URL of the page being displayed then you can get it from the `$_SERVER` array. It is the `REQUEST_URI` item in the array.
Member
Member
vincent3569
2011-09-15, 20:15
#3
thanks
REQUEST_URI gives the rewrited url ?
ie : http://domaine.fr/news instead of http://domaine.fr/index.php?p=news
Member
Member
sbillard
2011-09-15, 20:27
#4
It gives the URL that was "submitted" by the browser. So it will be rewritten under normal circumstances.
Administrator
Administrator
acrylian
2011-09-16, 07:55
#5
We have also functions to get the url of the current item like `getAlbumLinkURL()`. For zenpage items there are also functions like `getNewsURL()` (see doc for the right name).
Search Thread
Next Oldest
Next Newest
Contact Us
Legal
Terms Of Service
Privacy
RSS Syndication
Return to Top
Powered By
MyBB
, © 2002-2026
MyBB Group
.
Made with
by
Curves UI
.