Created
April 26, 2017 13:39
-
-
Save renorram/ff96ad919e3d990a2c5c20dfde04a760 to your computer and use it in GitHub Desktop.
minimum for run indiscriminated code in magento
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 | |
// Show all errors | |
ini_set('display_errors', 1); | |
/** | |
* Compilation includes configuration file | |
*/ | |
define('MAGENTO_ROOT', getcwd()); | |
// Include bootstrap file and Mage Class file | |
require MAGENTO_ROOT . '/app/bootstrap.php'; | |
require_once MAGENTO_ROOT . '/app/Mage.php'; | |
// Set developer mode | |
Mage::setIsDeveloperMode(true); | |
umask(0); | |
$storeId = 1; | |
// Init magento store | |
Mage::init($storeId); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment