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