Username or Email
While overriding Mage_Contacts_IndexController, i am getting the following error message
Call to a member function setFormAction() on a non-object
please help me to fix this issue
Thanks in advance
How did you rewrite the controller?
You get this error because there is no block named ‘contactForm’ in your layout.
$this->getLayout()->getBlock('contactForm') ->setFormAction( Mage::getUrl('*/*/post') );
Check out the Ultimate Module Creator:
on magento connect
I have fixed the issue.
Thank you for subscribingPlease check your email for a confirmation.
Keep up with the latest Magento
news and events.
Terms of Service