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!
精彩评论