Wednesday 28 September 2016

How to redirect to controller with parameters in Magento.



How to redirect to controller with Parameters?

Many time we require to redirect to controller with some parameters and need to GET parameters at business module.

Below is the example to do it:

$this->_redirect('yourmodule/controller/action', array('First Parameter'=>'1','Second Parameter'=>'2'));

This will helpful, when you need more than one buttons on same page and want to implement the different logic on different clicks.

1 comment: