I have my Magento package/theme structure configured like this:
In Configuration -> General -> Design:
In the package section the text "default".
In the themes section I have all the inputs empty except for the default input where I have introduced the name of my theme: "mytheme".
I need to get the package && theme name by code.
I have no problems with the package name:
Mage::getDesign('core/design_package')->getPackageName()
This code returns "default", which is perfect.
But when I try to get the theme name, I cannot get the text "mytheme".
Mage::getDesign()->getTheme('frontend');
Mage::getDesign()->getTheme('layout');
Mage::getDesign()->getTheme('template');
Mage::getDesign()->getTheme('skin');
Mage::getDesign()->getTheme('locale');
The different approachs return always "default".
If I introduce and save the name of my theme for example in the "layout" input, I can get it with:
Mage::getDesign()->getTheme('layout');
But how I can get the text of the "default" input?
Best Answer
Try with