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

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

Get all parameters

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

This can be used with success in admin area.

by