magento subdomain website $this->getRequest()->isPost() return blank in every form submission
-
13-12-2019 - |
Question
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.
Solution
It should be
$this->getRequest()->isPost()
and not
$this->getrequest()->ispost()
Licensed under: CC-BY-SA with attribution
Not affiliated with magento.stackexchange