It turns out after hours of searching and trial and error that this task is relatively simple.
In your controller you simply do this:
$session = Mage::getSingleton('core/session');
$session->addError($this->__('My error Message'));
in your template file you then call the message like this:
<?php echo $this->getMessagesBlock()->getGroupedHtml(); ?>
I recommend creating some helper methods you can call in your controller:
private function add_error($error)
{
$session = Mage::getSingleton('core/session');
$session->addError($this->__($error));
}
private function clear_errors()
{
$session = Mage::getSingleton('core/session');
$session->getMessages(true);
}
April 23rd, 2013 at 09:12 AM
If you are going for finest contents like myself, only pay a quick visit this site all the time as it offers quality contents, thanks
May 3rd, 2013 at 08:29 AM
It’s impressive that you are getting thoughts from this paragraph as well as from our discussion made at this time.