Created
February 5, 2014 22:36
-
-
Save cgdangelo/8834735 to your computer and use it in GitHub Desktop.
faking Magento requests
This file contains hidden or 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 | |
$_SERVER['HTTP_HOST'] = 'magento.local'; | |
require 'app/Mage.php'; | |
umask(0); | |
$request = new Mage_Core_Controller_Request_Http('http://magento.local/guitars-basses'); | |
Mage::run('', 'store', array('request' => $request)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment