Magento 1.9 Controllers – Use Skin URL in Controller

controllersmagento-1.9skin

I want to get skin URL in Magento Controller. I tried this

Mage::getBaseUrl(Mage_Core_Model_Store::URL_TYPE_SKIN);

but it returns

http://magento_root/skin/

How can I get the URL like the one give below.

http://magento_root/skin/frontend/rwd/default

I need this because I want to set an image path in API response in controller.

Best Answer

I reckon you should try:

Mage::getSingleton('core/design_package')->getSkinBaseUrl();
Related Topic