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.




1 comment:

  1. This is a great website, so many people need this information, thanks for providing it.

    www.imarksweb.org

    ReplyDelete