如何在Magento网格中有2个动作操作列?

时间:2016-08-12 08:58:19

标签: magento

我在magento网格中创建了一个操作列,但我想在我的操作列中执行2个操作。

我在_prepareColumn中尝试了这段代码:

$this->addColumn('action',
    array(
        'header'    => Mage::helper('sterenn_quote')->__('Action'),
        'width'     => '100px',
        'type'      => 'action',
        'getter'     => 'getId',
        'actions'   => array(

            array(
                'caption' => Mage::helper('sterenn_quote')->__('Modidier'),
                'url'     => array(
                    'base' => '*/*/modifyquotation',
                    'param' => array('id' => $this->getRequest()->getParam('quotation_id'))
                ),
                'field'   => 'id'

            ),

            array(
                'caption' => Mage::helper('sterenn_quote')->__('Detail'),
                'url'     => array(
                    'base' => '*/*/detail',
                    'param' => array('id' => $this->getRequest()->getParam('quotation_id'))
                ),
                'field'   => 'id'

            )

        ),

        'filter'    => false,
        'sortable'  => false,
        'index'     => 'stores'
    ));

但我得到了这个结果:

enter image description here

我怎样才能让我的两个动作“修改器”和“细节”?

感谢您的回答!

0 个答案:

没有答案