Skip to content

Instantly share code, notes, and snippets.

@kozie
Last active December 11, 2015 11:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kozie/4593355 to your computer and use it in GitHub Desktop.
Save kozie/4593355 to your computer and use it in GitHub Desktop.
Simple Magento test (index) file for debugging
<?php
require_once 'app/Mage.php';
// Set some debugging flags
Varien_Profiler::enable();
Mage::setIsDeveloperMode(true);
ini_set('display_errors', 1);
// Initialize Magento
umask(0);
Mage::app();
// Further code here
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment