phtml file I use
<img src='<?php echo $this->getViewFileUrl('images/logo.png'); ?>'
How to do same in
html file ?
Magento Stack Exchange is a question and answer site for users of the Magento e-Commerce platform. It only takes a minute to sign up.Sign up to join this community
you might have got your answer as it is an old post but I came across this today. PHP may not directly be written in
.html files. If you want to then you might want to see this discussion.
You can extend magento's core requireJS modules that defines this function then change any attribute of your DOM through JS.