Question of the day:
How to use the old functions($this->getSkinUrl() and {{skin url=”}}) from Magento 1.x inside the brand new Magento 2?
Well the answer is pretty easy.
In Magento 1.x you can get the skin url(in phtml templates) using:
$this->getSkinUrl()
Now, in Magento 2 the function looks like:
$this->getViewFileUrl()
In Magento 1.x you can get the skin url(in cms blocks/pages/categories etc ) using:
{{skin url=”}}
Now, in Magento 2 the function looks like:
{{view url=”}}
If you need assistance or help with Magento Development please don’t hesitate to contact me via my contact form or comments section.
Happy Codding!