Last Updated: February 25, 2016
·
736
· subrata

To retrieve URL paths in a Magento PHTML file

<?php echo $this->getSkinUrl('images/image.jpg') ?>
Mage::helper('core/url')->getCurrentUrl();
Mage::helper('core/url')->getHomeUrl();
Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_SKIN);
Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_JS);

Have a fresh tip? Share with Coderwall community!

Post
Post a tip
Related Tags
#php
#magento
Did you know?

Magento checkout pages are a common target for Magecart-style card skimming. Payment, analytics, and extension scripts on those pages need an inventory and a watch for silent changes.

Security insights from Cside