【发布时间】:2015-04-27 19:15:20
【问题描述】:
(仅供参考,这是 1.4 版,是的,我正在刷新我的 var/cache 文件夹。我已经开始阅读 Alan Storm 的教程,这很有帮助,但没有具体说明这个问题)
我是 Magento 的新手,我们使用的是 OnePage 结帐方法,我们有以下内容:
app/code/local/Ourcompany/Checkout/etc/config.xml
有如下定义:
<frontend>
<routers>
<checkout>
<args>
<modules>
<Ourcompany_Checkout before="Mage_Checkout">Ourcompany_Checkout</Ourcompany_Checkout>
</modules>
</args>
</checkout>
</routers>
</frontend>
我有一个对应的文件在:
/app/code/local/Ourcompany/Checkout/controllers/OnepageController.php
在那里我有一堂课:
class Ourcompany_Checkout_OnepageController extends Mage_Checkout_OnepageController
到目前为止,我还无法让 Magento 承认它的存在。仅调用 core 中的本机方法。如果我删除或重命名此页面,则没有错误声明 - 我认为我在 config.xml 中的语法不正确。任何人都可以识别出不正确的语法吗?
【问题讨论】:
标签: magento-1.4