I have magento website in domain and also in sub domain.

The domain website form work correctly i.e. $this->getRequest()->isPost() return true after form submission.

But the subdomain website form after submission $this->getRequest()->isPost() return false.

I also add the code : getFormKey(); ?>" />

after form tag then also it is not working.$this->getRequest()->isPost() return false.

Same code works in my local xampp server.

Please help me to solve this issue.

有帮助吗?

解决方案

It should be

$this->getRequest()->isPost()

and not

$this->getrequest()->ispost()

许可以下: CC-BY-SA归因
scroll top