Search code examples
phpmagentourlparametersparam

How to getParams type of array


In Magento, as usually we used to get param

http://magento.com/customer/account/view/id/122

we can get the param by

$x = $this->getRequest()->getParam('id');
echo $x; // value is 122

now as far as i know the $x just to get a string from the param.

is there any way to get $x as an array?

as example:

Array
(
    [0] => 122
    [1] => 233
)

Solution

  • I am afraid it is currently not possible for Zend Framework or Magento to pass array param to zend url.

    Here is a bug reported on passing get variable as an array.