Hot Topics

Magento – Database Queries

Magento is a complete and awesome MVC application. It’s fully moduler and easy to extend its features and functionality. All…..

Magento – Request and Post parameters in controllers

To get the parameters passed in the controllers use the following code.

Retrieve URI parameters.
$params = $this->getRequest()->getParams();
$id = $params["id"];
$name = $params["name"];
Retrieve Post parameters.
$id =$this->getRequest()->getPost("id");
$name = $this->getRequest()->getPost("name");