
MAGENTO 1.X – MAGENTO FLASH MESSAGES
Some times, you will need to notice in your custom extensions (frontend or backend), any kind of succeed, or an error. To do so, let’s use the standard Magento notification system flash messages, as follows:
- Success
1Mage::getSingleton('core/session')->addSuccess('Success message'); - Notice
1Mage::getSingleton('core/session')->addNotice('Notice message'); - Error
1Mage::getSingleton('core/session')->addError('ERROR message'); - Warning
1Mage::getSingleton('core/session')->addWarning('WARNING message');