![]() |
|
How to get site URL - Printable Version +- ZenphotoCMS Forum (https://forum.zenphoto.org) +-- Forum: Support (https://forum.zenphoto.org/forum-1.html) +--- Forum: Themes (https://forum.zenphoto.org/forum-5.html) +--- Thread: How to get site URL (/thread-9867.html) |
How to get site URL - rreimche - 2012-04-18 Sorry for this question, as I think it should be enough simple to find the answer, but quick look through search results didn't help me. The question is, how can I get the URL of the site for use in my theme? I plan to use it like: ... How to get site URL - acrylian - 2012-04-18 I don't understand what you mean. What site? How to get site URL - rreimche - 2012-04-18 If the url of my website is http://mysite.com/smth/ (opening mysite.com doesn't give user anything), and I need to place links like how do I get $mysiteurl? Does this make sense? How to get site URL - acrylian - 2012-04-18 First, why do you have Second, Zenphoto provides several functions to get these links ( There are also some constants WEBPATH and SERVERPATH, or FULLSERVERPATH available:http://www.zenphoto.org/documentation/functions/_functions-basic.php.html How to get site URL - Michel Gagnon - 2012-04-18 Post erased How to get site URL - acrylian - 2012-04-18 @Michel: Why do you erase your post? How to get site URL - rreimche - 2012-04-18 WEBPATH is just perfect. Thank you. How to get site URL - rreimche - 2012-04-18 For "why do you need that, when you can just...", I'd say I'd like to have some extra transfer freedom. For example, now my site lives at demo.mysite.com/thesite and in several days it'll move to anothersite.com How to get site URL - acrylian - 2012-04-19 Ok, I just didn't understand so I asked. How to get site URL - Michel Gagnon - 2012-04-19 @acrylian, I had started to write something while you were writing your post. When I completed my entry, I noticed that your answer was better than mine. |