How to get skin and Base url in Magento?

Skin and Base url in Magento With Skin and Base URL you can get the right folder information and make changes as required.


Get Base Url:

Mage::getBaseUrl();

Get Skin Url:

Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_S

Unsecure Skin Url :

$this->getSkinUrl('images/yourimagename.jpg');

Secure Skin Url :

$this->getSkinUrl('images/imagename.gif', array('_secure'=>true));

Get Url In Cms Pages Or Static Blocks:- Get Base Url:-

{{store url=""}}

Get Skin Url:-
{{skin url='images/yourimagename.jpg'}}

You may also like...

Leave a Reply

Your email address will not be published. Required fields are marked *