How to get URL using Smarty similar to window.location in JavaScript ?
URL
Smarty
window.location
JavaScript
I did this
{$smarty.server.PHP_SELF}
but it's not working.
You can use this, too.
{$smarty.server.HTTP_HOST}{$smarty.server.REQUEST_URI}
1.4m articles
1.4m replys
5 comments
57.0k users