How to Get the Base Skin Directory in Magento
Since relative path is not advisable here, I search magento for a function that will get the default skin directory. And I found one: getS...
https://www.czetsuyatech.com/2021/07/magento-get-base-skin-directory.html
Since relative path is not advisable here, I search magento for a function that will get the default skin directory. And I found one:
getSkinUrl('relative path')
example: $this->getSkinUrl('images/logo.jpg')
Or within CMS defined blocks
example: {{skin url="images/logo.jpg" }}
getSkinUrl('relative path')
example: $this->getSkinUrl('images/logo.jpg')
Or within CMS defined blocks
{{skin url="relative path" }}
example: {{skin url="images/logo.jpg" }}
1 comment
Thanks a bunch, just what i was looking for ;)
Post a Comment