How to obtain current URL data with Smarty?.

Do you want to get the current URL data of and page using Smarty. Here is the way to do that.

Retrieve the primary URL or the host (Eg. localhost)


Retrive the rest of the URL or the URI (Eg. /site/index.php?id=4541&sn=4565)



So you can make the complete URL like this.




Comments

You are welcome to share your ideas with us in the comments!

Archive

Contact Form

Send