Skip to content

Instantly share code, notes, and snippets.

@cgdangelo
Created February 5, 2014 22:36
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cgdangelo/8834735 to your computer and use it in GitHub Desktop.
Save cgdangelo/8834735 to your computer and use it in GitHub Desktop.
faking Magento requests
<?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