Last active
August 29, 2015 14:07
-
-
Save mhhansen/e5465f97aa0a87d02b0e to your computer and use it in GitHub Desktop.
Magento Environment Emulator
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
$storeId = '0'; | |
$appEmulation = Mage::getSingleton('core/app_emulation'); | |
// start emulation | |
$envInfo = $appEmulation->startEnvironmentEmulation($storeId); | |
/** | |
* do your stuff in that Store | |
*/ | |
// stop emulation | |
$appEmulation->stopEnvironmentEmulation($envInfo); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment