Magento Code Snippets – Get Base Url In Phtml File
As a Magento Developer some of the things I always forget and have to look up.
Get the base URL of your magento install within a .phtml template file.
Nice and easy :
<?php $baseUrl = Mage::getBaseUrl(); ?>

