ストアをロードする前に、顧客データを取得し、ロードするストアビューを決定したいと考えています。しかし、それはそのようには機能しません:
// Option 1
$customer = Mage::getSingleton('customer/session'); // does not work before Framework is loaded
// Option 2
Mage::app();
$customer = Mage::getSingleton('customer/session'); // does work but...
Mage::run($mageRunCode, $mageRunType); // produces here the following error: "Mage registry key "controller" already exists"
では、顧客データをロードしてからショップをロードする方法は?