Skip to content

Instantly share code, notes, and snippets.

@zainengineer
Last active September 27, 2021 10:50
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 zainengineer/d4076727c23482c0494fdea1cd6489ba to your computer and use it in GitHub Desktop.
Save zainengineer/d4076727c23482c0494fdea1cd6489ba to your computer and use it in GitHub Desktop.
Magento entry script
<?php
umask(0);
require 'app/Mage.php';
Mage::setIsDeveloperMode(true);
error_reporting(E_ALL);
ini_set('display_errors', 1);
set_time_limit(0);
Mage::app();
Mage::app()->setCurrentStore(Mage_Core_Model_App::ADMIN_STORE_ID);
// n98 config:set web/cookie/cookie_path /
// Mage::app()->setCurrentStore(Mage_Core_Model_App::DISTRO_STORE_ID);
// $session = Mage::getSingleton('core/session', array('name' => \Mage_Core_Controller_Front_Action::SESSION_NAMESPACE))->start();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment