Call-back icon  Sales: Call 877.832.5289 (N America)|310.295.4144 (International)

Magento

eCommerce Software for Online Growth

Magento Forum

   
Message alerts for custom module
 
CK Rock
Jr. Member
 
Avatar
Total Posts:  1
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:  88
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
 
Sales: Call 877.832.5289 (North America) 310.295.4144 (International)
© Copyright 2008 Varien. Magento, eCommerce software, is a trademark of Irubin Consulting Inc. DBA Varien
Privacy Policy|Terms of Service
Magento Community Count
50108 users|426 users currently online|102246 forum posts