Looking for a JavaEE Architect or Potential Tech Co-Founder?
Please don't hesitate to contact me.

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:

getSkinUrl('relative path')

example: $this->getSkinUrl('images/logo.jpg')

Or within CMS defined blocks


{{skin url="relative path" }}


example: {{skin url="images/logo.jpg" }}
how to get the base skin directory in magento how to get the base skin directory in magento Reviewed by czetsuya on Friday, September 11, 2009 Rating: 5

1 comment:

Kozie said...

Thanks a bunch, just what i was looking for ;)

Powered by Blogger.