问题
I'm learning to develop modules magento. I'm developing a payment module and it should receive a post (after closing the application) to change the status of the request and generate the invoice.
But I do not know how to get on my HTTP POST controller. I will make a post at http://mymagento.com/mymodule/receive.
class MyCompanyName_MyModule_StandardController extends Mage_Core_Controller_Front_Action{
public function receiveAction() {
//How receive my POST HERE??
}
// ...
}
I appreciate any help
回答1:
See Zend_Controller_Request_Http::getPost():
$this->getRequest()->getPost();
// or
$this->getRequest()->getPost('param');
来源:https://stackoverflow.com/questions/12380780/receive-http-post-in-controller-of-my-magento-custom-module