Blog
About us
Contact us

Archive for September 2010

Quick tip: Admin SSL urls

keyboard-lock-ssl

If you’re building Magento extensions that function in the Magento admin and which have to be used in SSL’d and non-SSL’d environments, you can not use a regular $this->getUrl() call to construct your urls. Instead, use┬áMage::getSingleton(‘adminhtml/url’)->getUrl(). That way the URL is automatically constructed with either SSL or no SSL.