|
I followed the instructions to get started with a custom module but ran into trouble.
I’d like to add a postAction to the controller to deal with a form, then redirect to another page, passing messages using the Magento message notification system. But I can’t figure out how to do that.
I tried creating a session model for the module and then passing the message through that:
Mage::getSingleton('dealers/session')->addSuccess($message));
And a var_dump on Mage::getSingleton(’dealers/session’) will show the messages accruing each time I submit the form, but then I can’t get the messages to display in the template, which I tried doing by using the following code:
<?php echo $this->getMessagesBlock()->getGroupedHtml() ?>
But nothing shows up.
Any ideas?
|