0

问题:我正在尝试覆盖 Mage_Adminhtml_Block_Widget_Grid

代码:

配置文件

<global>
        <blocks>
            <adminhtmlext>
                <class>Blizzardlabs_Adminhtmlext_Block</class>
            </adminhtmlext>
            <adminhtml>
                <rewrite>
                    <widget_grid>Blizzardlabs_Adminhtmlext_Adminhtml_Block_Widget_Grid</widget_grid>
                </rewrite>
            </adminhtml>
        </blocks>
</global>

Adminhtml/Block/Widget/Grid.php

class Blizzardlabs_Adminhtmlext_Adminhtml_Block_Widget_Grid extends Mage_Adminhtml_Block_Widget_Grid
{

    public function getRowClass(Varien_Object $row)
    {die();
        return $row->getCustomerActivated() ? 'user-active' : 'user-inactive';        
    }
}

我似乎无法让它工作......请帮助

4

0 回答 0