php - How to get the current url in a OpenCart .tpl file? -


i'd current url in .tpl file in opencart.

i've seen answer works in php file.

i have way:

_my_array.push(['_productname',"<?php echo $heading_title; ?>"]); **_my_array.push(['_producturl', ["how can url ?"]]);** 

thanks

to full url

<?php $url = "http://$_server[http_host]$_server[request_uri]"; ?> 

and btw answers work on tpl files because tpl files sort of php files only


Comments

Popular posts from this blog

html - Sizing a high-res image (~8MB) to display entirely in a small div (circular, diameter 100px) -

java - IntelliJ - No such instance method -

identifier - Is it possible for an html5 document to have two ids? -