【发布时间】:2010-11-23 16:20:43
【问题描述】:
我创建了一个模块,它为我的管理网格使用自定义小部件/网格/列来显示缩略图图像,一切正常。现在我需要在同一个项目中创建另一个模块来做同样的事情,但是图像列不起作用。看起来它甚至没有加载我的新类,因为它不会执行我放入文件的任何 stmt。我知道它正确加载数据,b/c 如果我将类型更改为文本,那么来自数据库的正确信息将填充到该字段中。但是当我更改为新的“图像”类型时,单元格是空的。有谁知道为什么它不起作用?
ABT/Background/etc/config.xml
<global>
....
<blocks>
<background>
<class>ABT_Background_Block</class>
</background>
<adminhtml>
<rewrite>
<widget_grid_column>ABT_Background_Block_Widget_Grid_Column</widget_grid_column>
</rewrite>
</adminhtml>
</blocks>
....
</global>
我为启动和运行而复制的模块具有完全相同的配置设置,但它工作正常 ABT/Feature/etc/config.xml
<global>
....
<blocks>
<feature>
<class>ABT_Feature_Block</class>
</feature>
<adminhtml>
<rewrite>
<widget_grid_column>ABT_Feature_Block_Widget_Grid_Column</widget_grid_column>
</rewrite>
</adminhtml>
</blocks>
....
</global>
【问题讨论】:
标签: php zend-framework configuration magento