MAGENTO: get skin url, get media url, get base url, get store url

In magento use path code many type.....

* get skin url in phtml file-
<?php echo $this->getSkinUrl('images/abc.png'); ?>

* get base url in phtml file (it is use media base url)
<?php echo Mage::getBaseUrl('media') . 'catalog/cate' ?>

* get skin url in static block and cms pages-
{{skin url='images/abcimage.jpg'}}

* get Media url in static block and cms pages-
{{media url='images/abcimage.jpg'}}

* get store url in static block and cms pages-
{{store url='tamplate/test.phtml'}}

* get Base url in static block and cms pages-
{{base url='abc'}}

Another way to get url in phtml file-
* get Media Url in phtml file-
<?php Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_MEDIA);?>

* get Skin Url in phtml file-
<?php Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_SKIN);?>

* get Store Url in phtml file-
<?php Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_WEB);?>

* get JS Url in phtml file-
<?php Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_JS);?>


* get current url in phtml file-
<?php Mage::helper('core/url')->getCurrentUrl();?>

Labels: