28sept/100
Magento : Run a specific store or website
If you have a single Magento installation with multiple websites/stores and you want, for exemple like me, adding ajax functionalities, you'll need to load magento framework in your ajax page.
To do this you can use this tip :
// Put the website or store code (default: 'base')
$code = 'store/website code';
// Put the type to load ('website' or 'store')
$type = 'store' or 'website';
// Load magento framework
Mage::app($code, $type);
// Load magento framework and run the website/store
Mage::run($code, $type);
Now you'r able to use magento framework functionnalities.
