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') );
I have fixed the issue.
We'd like to hear from you! Call us, send us an email or talk to sales.
See Magento in the news, find press releases and resources for media.
Thank you for subscribingPlease check your email for a confirmation.