我需要在magento中为下面的代码取消设置错误消息会话.
Mage::getSingleton('core/session')->addError($message);
Run Code Online (Sandbox Code Playgroud)
谁能帮我?
Men*_*nno 20
您应该能够使用以下代码,虽然它将返回所有消息(它不会回显它们),它将清除它们:
Mage::getSingleton('core/session')->getMessages(true); // The true is for clearing them after loading them
Run Code Online (Sandbox Code Playgroud)
我希望这回答了你的问题.^ _ ^
| 归档时间: |
|
| 查看次数: |
8592 次 |
| 最近记录: |