Home    Articles


How to get Url Parameters in magento


If you need to get the Parameters from magento url you can do it in these ways:

Get specific parameter

#this can be used in Controller or in Block
echo $this->getRequest()->getParam( 'requestid' );

Get all parameters

$params = $this->getRequest()->getParams();
print_r( $params );

This can be used with success in admin area.