Magento get url parameters on phtml


Magento get url parameters on phtml- If you are working with magento you often need to get the url parameters in phtml, observers or model controllers. You can use Mage::app()->getRequest()->getParams() to get url parameters anywhere you want.


Magento get url parameters on phtml

Here is syntax for getting the url parameters.

Magento get url parameters on phtml

$urlParams = Mage::app()->getRequest()->getParams();//will return array of parameters.

The above example will return the parameters of url on phtml, observers or model controllers.


Advertisements

Add Comment

📖 Read More