Skip to content

Instantly share code, notes, and snippets.

@Schrank
Created September 16, 2011 14:15
Show Gist options
  • Save Schrank/1222213 to your computer and use it in GitHub Desktop.
Save Schrank/1222213 to your computer and use it in GitHub Desktop.
fetch frontendtemplates in magento backend
<?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