magento web developer

Manchester based Magento and Zend Framework certified developer.

One-off Magento scripts

Sometimes it is useful to be able to run quick scripts outside of Magento.  This is possible by placing the following at the top of a script in the Magento root:


// you now have the Magento environment setup to do things like this...
$product = Mage::getModel('catalog/product')->load(123);

1 2