How to get post data variables after submition a form in magento

前端 未结 5 1392
暖寄归人
暖寄归人 2021-01-31 20:39

How do I get data of post variables ? Like if I post form with post method then I can get itt with $_REQUEST or with $_POST. How I can do this in mgento ?

5条回答
  •  春和景丽
    2021-01-31 21:07

    Just to mention for everyone looking into this thread..

    $this->getRequest()->getParams('value_here');
    

    is just wrong... The only available method to retrieve a special param with or without default value is without s

    $this->getRequest()->getParam('param','defaultValue');
    

    All other comments are just wrong

提交回复
热议问题