Created
September 16, 2011 14:15
-
-
Save Schrank/1222213 to your computer and use it in GitHub Desktop.
fetch frontendtemplates in magento backend
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// maybe it is too much, but it works :-) | |
$design = Mage::getSingleton('core/design_package'); | |
$design->setArea(Mage_Core_Model_Design_Package::DEFAULT_AREA) | |
->setTheme( | |
array( | |
'layout' => Mage_Core_Model_Design_Package::DEFAULT_THEME, | |
'template' => Mage_Core_Model_Design_Package::DEFAULT_THEME, | |
'skin' => Mage_Core_Model_Design_Package::DEFAULT_THEME, | |
'locale' => Mage_Core_Model_Design_Package::DEFAULT_THEME | |
) | |
) | |
->setPackageName(YOUR_PACKAGE_NAME); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment