Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Changing index.php or adding some new file on the root folder of project is not recommended.
- Git can help you to customize your project on local instance without bothering any team members.
- file .git/info/exclude
- ```
- /index2.php
- /test.php
- ```
- edit index2.php line ~ 73-75
- ```php
- // if (isset($_SERVER['MAGE_IS_DEVELOPER_MODE'])) {
- Mage::setIsDeveloperMode(true);
- // }
- ```
- edit magento config for nginx server, change all "index.php" to "index2.php".
- add test.php for testing some feature easily, that is example file.
- ```php
- <?php
- error_reporting(E_ALL | E_STRICT);
- define('MAGENTO_ROOT', getcwd());
- require_once MAGENTO_ROOT . '/app/Mage.php';
- Mage::setIsDeveloperMode(true);
- ini_set('display_errors', 1);
- umask(0);
- Mage::app(1);
- // Mage::run('', 'store');
- $product = \Mage::getModel('catalog/product');
- $product->load((int) $productId);
- ```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement