开发者

Magento - Get variable from grid to admin controller

My question is about,

how to get a variable from a Magemto grid to My admin controlle开发者_如何转开发r page. (ie Exactly to my public function massStatusAction())

Thanks.


You can get those ID like this

$productIds = (array)$this->getRequest()->getParam('product');

Where product is set as Mass Action field in the Grid's protected function _prepareMassaction() like this.

$this->setMassactionIdField('entity_id')

Hope this helps!

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜