Magento – Retrieving Base URL Path

Anyone needing to retrieve the base URL path from Magento, just place this one line of code and there you have it! Hope this helps someone.

 

14 thoughts on “Magento – Retrieving Base URL Path”

  1. Thanks Richard, this one had been driving me nuts! Tried all sorts of PHP lines so glad to finally stumble on this. Cheers for sharing. Ben

Leave a Reply

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