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}
2.1m questions
2.1m answers
60 comments
57.0k users