0
加載商店之前,我想獲取一些客戶數據並決定加載哪個storeview。但它不工作就是這樣:如何在Mage :: run之前獲取Magento客戶數據?
// 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"
那麼,如何加載客戶數據,然後加載店?
權,但你如何手動啓動前端與法師初始化框架::應用後(); ? – ottom 2013-03-19 13:41:22
請參閱我的編輯以獲取更多信息 – Soundz 2013-03-19 14:04:05