如何取消Magento错误消息会话?
我需要在magento中为以下代码取消设置错误消息会话如何取消Magento错误消息会话?,magento,Magento,我需要在magento中为以下代码取消设置错误消息会话 Mage::getSingleton('core/session')->addError($message); 有人能帮我吗?您应该能够使用以下代码,尽管它会返回所有消息(不会回显),但会清除它们: Mage::getSingleton('core/session')->getMessages(true); // The true is for clearing them after loading them 我希望这能回答
Mage::getSingleton('core/session')->addError($message);
有人能帮我吗?您应该能够使用以下代码,尽管它会返回所有消息(不会回显),但会清除它们:
Mage::getSingleton('core/session')->getMessages(true); // The true is for clearing them after loading them
我希望这能回答你的问题^_^