我的工作与网格管理员Magento的模块上和我遇到一个奇怪的问题。
该块被装载,所以是延伸Mage_Adminhtml_Block_Widget_Grid类,但网格widget类仅焙烧构建体而不是_prepareCollection()或_prepareColumns()方法。
如果我手动触发_prepareCollection()方法,我得到我的收藏,所以我知道的工作。 我可以证实,所有的布局文件的正确加载。
与没有在PHP,Apache或Magento的错误日志我在哪里寻找这个问题有点难倒了:(
有没有人碰到类似的情况? 如果是的话是什么原因? 有没有人有Magento的调试任何建议,当有任何日志中没有错误?
XML配置是:
<?xml version="1.0"?>
<modules>
<Fisheye_Enquiryforms>
<version>0.1.0</version>
</Fisheye_Enquiryforms>
</modules>
<frontend>
<routers>
<fisheye_enquiryforms>
<use>standard</use>
<args>
<module>Fisheye_Enquiryforms</module>
<frontName>enquiryforms</frontName>
</args>
</fisheye_enquiryforms>
</routers>
<layout>
<updates>
<fisheye_enquiryforms>
<file>fisheye/enquiryforms/enquiryforms.xml</file>
</fisheye_enquiryforms>
</updates>
</layout>
</frontend>
<admin>
<routers>
<adminhtml>
<args>
<modules>
<Fisheye_Enquiryforms before="Mage_Adminhtml">Fisheye_Enquiryforms_Adminhtml</Fisheye_Enquiryforms>
</modules>
</args>
</adminhtml>
</routers>
</admin>
<adminhtml>
<layout>
<updates>
<fisheye_enquiryforms>
<file>fisheye/enquiryforms/enquiryforms.xml</file>
</fisheye_enquiryforms>
</updates>
</layout>
</adminhtml>
<global>
<blocks>
<fisheye_enquiryforms>
<class>Fisheye_Enquiryforms_Block</class>
</fisheye_enquiryforms>
</blocks>
<helpers>
<fisheye_enquiryforms>
<class>Fisheye_Enquiryforms_Helper</class>
</fisheye_enquiryforms>
</helpers>
<models>
<fisheye_enquiryforms>
<class>Fisheye_Enquiryforms_Model</class>
<resourceModel>fisheye_enquiryforms_mysql4</resourceModel>
</fisheye_enquiryforms>
<fisheye_enquiryforms_mysql4>
<class>Fisheye_Enquiryforms_Model_Mysql4</class>
<entities>
<catalogues><!-- tag must match lowercase model file name -->
<table>fisheye_enquiryforms_catalogues</table>
</catalogues>
<quotes><!-- tag must match lowercase model file name -->
<table>fisheye_enquiryforms_quotes</table>
</quotes>
<products><!-- tag must match lowercase model file name -->
<table>fisheye_enquiryforms_products</table>
</products>
</entities>
</fisheye_enquiryforms_mysql4>
</models>
<resources>
<fisheye_enquiryforms_setup>
<setup>
<module>Fisheye_Enquiryforms</module>
</setup>
</fisheye_enquiryforms_setup>
</resources>
</global>
enquiryforms.xml是
<?xml version="1.0"?>
<layout>
<adminhtml_enquiryforms_catalogues_index>
<reference name="content">
<block type="fisheye_enquiryforms/adminhtml_catalogues" name="enquiryforms.catalogues" />
</reference>
</adminhtml_enquiryforms_catalogues_index>
<adminhtml_enquiryforms_products_index>
<reference name="content">
<block type="fisheye_enquiryforms/adminhtml_products" name="enquiryforms.products" />
</reference>
</adminhtml_enquiryforms_products_index>
<adminhtml_enquiryforms_quotes_index>
<reference name="content">
<block type="fisheye_enquiryforms/adminhtml_quotes" name="enquiryforms.quotes" />
</reference>
</adminhtml_enquiryforms_quotes_index>
</layout>
提前致谢
戴夫