Magento addColumn()以添加一个;“视图”;每个产品记录末尾的链接

Magento addColumn()以添加一个;“视图”;每个产品记录末尾的链接,magento,Magento,我想在Catalog->Manage Products(目录->管理产品)的产品列表中的每个产品记录末尾添加一个指向产品显示页面的链接 到目前为止,我发现我应该编辑Grid.php,并得出以下代码: $this->addColumn('view', array( 'header' => Mage::helper('catalog')->__('View'), 'width' =

我想在Catalog->Manage Products(目录->管理产品)的产品列表中的每个产品记录末尾添加一个指向产品显示页面的链接

到目前为止,我发现我应该编辑Grid.php,并得出以下代码:

$this->addColumn('view',
            array(
                'header'    => Mage::helper('catalog')->__('View'),
                'width'     => '50px',
                'type'      => 'action',
                'getter'     => 'getId',
                'actions'   => array(
                    array(
                        'caption' => Mage::helper('catalog')->__('View'),
                        'url'     => array(
                            'base'=>'*/*/view',
                            'params'=>array()
                        ),
                        'field'   => 'id'
                    )
                ),
                'filter'    => false,
                'sortable'  => false,
                'index'     => 'stores',
        ));
现在我不知道如何获取当前产品(行)的产品页面URL


你知道我如何修改上面的代码来得到我想要的吗?只需指向当前产品行的产品页的链接。。。。就像wordpress的帖子一样,它有一个查看帖子的链接来打开前端帖子。

我自己刚得到这个。请参见此处的详细说明: