为什么Magento没有加载我的块

时间:2013-05-30 05:49:38

标签: magento

我正在使用magento 1.7.2版本我在支付网关上工作一个奇怪的问题。请帮我解决这个问题,这是关注我的config.xml

<?xml version="1.0"?>
<config>
    <modules>
        <Easyshop_EasyshopInvoice>
            <version>1.0.0</version>
        </Easyshop_EasyshopInvoice>
    </modules>
    <global>
        <models>
            <easyshopinvoice>
                <class>Easyshop_EasyshopInvoice_Model</class>
            </easyshopinvoice>
        </models>
        <resources>
            <easyshopinvoice_setup>
                <setup>
                    <module>Easyshop_EasyshopInvoice</module>
                    <class>Mage_Eav_Model_Entity_Setup</class>
                </setup>
                <connection>
                    <use>core_setup</use>
                </connection>
            </easyshopinvoice_setup>
            <easyshopinvoice_read>
                <connection>
                    <use>core_read</use>
                </connection>
            </easyshopinvoice_read>
            <easyshopinvoice_write>
                <connection>
                    <use>core_write</use>
                </connection>
            </easyshopinvoice_write>
        </resources>
        <blocks>
            <easyshopinvoice>
                <class>Easyshop_EasyshopInvoice_Block</class>
            </easyshopinvoice>
        </blocks>
        <helpers>
            <easyshopinvoice>
                <class>Easyshop_EasyshopInvoice_Helper</class>
            </easyshopinvoice>
        </helpers>
   </global>
   <default>
        <payment>
            <easyshopinvoice>
                <model>easyshopinvoice/easyshopinvoice</model>
                <countries>SE,DE,NL</countries>
                <order_status>pending</order_status>
                <title>Easyshop Invoice</title>
                <active>1</active>
                <payment_action>authorize</payment_action>
            </easyshopinvoice>
        </payment>
        <payment_action>authorize</payment_action>
    </default>
    <adminhtml>
        <translate>
            <modules>
                <Easyshop_EasyshopInvoice>
                    <files>
                        <default>Easyshop_EasyshopInvoice.csv</default>
                    </files>
                </Easyshop_EasyshopInvoice>
            </modules>
        </translate>
    </adminhtml>
    <frontend>
        <routers>
            <easyshopinvoice>
                <use>standard</use>
                <args>
                    <module>Easyshop_EasyshopInvoice</module>
                    <frontname>easyshopinvoice</frontname>
                </args>
            </easyshopinvoice>
        </routers>
        <translate>
            <modules>
                <Easyshop_EasyshopInvoice>
                    <files>
                        <default>Easyshop_EasyshopInvoice.csv</default>
                    </files>
                </Easyshop_EasyshopInvoice>
            </modules>
        </translate>
    </frontend>
</config>
当我使用时,奇怪的问题可能在这个xml中出错了 $this->getLayout()->createBlock('easyshopinvoice/form')然后它总是返回false

我在Form.php下创建了阻止文件Easyshop/EasyshopInvoice/Block,类是Easyshop_EasyshopInvoice_Block_Form,但我仍然无法使用此块功能

0 个答案:

没有答案