我在MAMP本地主机上安装了magento。url为localhost/httpdocs/。我已经创建了一个名为"报价"的模块,适用于localhost, url: localhost/httpdocs/quotation。我创建的表单可以正确显示。在我们的测试域http://proac.ourdomain.com/quotation上,有一个404错误。数据库和代码是相同的(与PHPSTORM同步)
在test域中,报价模块显示404,未找到,但在本地工作。知道为什么吗?
config . xml
<?xml version = "1.0"?>
<config>
<modules>
<No_Quotation>
<version>0.0.1</version>
</No_Quotation>
</modules>
<frontend>
<routers>
<quotation>
<use>standard</use>
<args>
<module>No_Quotation</module>
<frontName>quotation</frontName>
</args>
</quotation>
</routers>
<translate>
<modules>
<No_Quotation>
<files>
<default>Mage_Contacts.csv</default>
</files>
</No_Quotation>
</modules>
</translate>
<layout>
<updates>
<quotation>
<file>quotation.xml</file>
</quotation>
</updates>
</layout>
</frontend>
<global>
<resources>
<quotation_setup>
<setup>
<module>No_Quotation</module>
</setup>
</quotation_setup>
</resources>
<template>
<email>
<quotation_email_email_template translate="label" module="quotation">
<label>Quote Form</label>
<file>quotation_form.html</file>
<type>html</type>
</quotation_email_email_template>
</email>
</template>
<helpers>
<quotation>
<class>No_Quotation_Helper</class>
</quotation>
</helpers>
</global>
<adminhtml>
<translate>
<modules>
<No_Quotation>
<files>
<default>No_Quotation.csv</default>
</files>
</No_Quotation>
</modules>
</translate>
</adminhtml>
<default>
<quotation>
<quotation>
<enabled>1</enabled>
</quotation>>
<email>
<recipient_email><![CDATA["marcstevenplotz@gmail.com"]]></recipient_email>
<sender_email_identity>custom2</sender_email_identity>
<email_template>quotation_email_email_template</email_template>
</email>
</quotation>>
</default>
</config>
xml> div class="answers">
我希望,这是config.xml spacing issue
的问题:我看到你的,有<?xml version = "1.0"?>
的some space below start
,所以删除这个空格