Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Message alerts for custom module
 
CK Rock
Jr. Member
 
Avatar
Total Posts:  4
Joined:  2008-06-11
 

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?

 
Magento Community Magento Community
Magento Community
Magento Community
 
gamelodge
Sr. Member
 
Avatar
Total Posts:  89
Joined:  2007-08-31
Brisbane, Qld, Australia
 

I am trying to do this too, did you manage to solve this?

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top