Skip to content

Instantly share code, notes, and snippets.

@jahvi
Created November 1, 2015 13:20
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 jahvi/78ebf4ff9e6405f34a46 to your computer and use it in GitHub Desktop.
Save jahvi/78ebf4ff9e6405f34a46 to your computer and use it in GitHub Desktop.
Magento store run
<?php
/* Store or website code */
$mageRunCode = isset($_SERVER['MAGE_RUN_CODE']) ? $_SERVER['MAGE_RUN_CODE'] : '';
/* Run store or run website */
$mageRunType = isset($_SERVER['MAGE_RUN_TYPE']) ? $_SERVER['MAGE_RUN_TYPE'] : 'store';
Mage::run($mageRunCode, $mageRunType);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment