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

php - regexp cyrillic filename not matches -

c# - OpenXML hanging while writing elements -

sql - Select Query has unexpected multiple records (MS Access) -