开发者

Magento - Get variable from grid to admin controller

开发者 https://www.devze.com 2023-01-29 16:03 出处:网络
My question is about, how to get a variable from a Magemto grid to My admin controlle开发者_如何转开发r page.

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

精彩评论

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