我的模块不工作的原因是什么


What could be the reason my module is not working

我可能尝试了20次,在Apache、nginx、windows、ubuntu上,遵循了数百万教程和书籍,但仍然是一样的,我真的很沮丧,所以请帮忙。我想要的只是浏览器中简单的hello世界。我的结构如下。首先是MasteringMagento_Example.xml:

<?xml version="1.0" ?>
<config>
    <modules>
    <MasteringMagento_Example>
    <active>true</active>
    <codePool>local</codePool>
    <depends />
    </MasteringMagento_Example>
    </modules>
</config>

我的结构是MasteringMagento/Example,有块、模型、控制器。。。文件夹。在etcconfig.xml中有以下内容:

<config>
    <modules>
        <MasteringMagento_Example>
            <version>0.0.0</version>
        </MasteringMagento_Example>
    </modules>
    <global>
        <models>
            <example>
                <class>MasteringMagento_Example_Model</class>
            </example>
        </models>
        <blocks>
            <example>
                <class>MasteringMagento_Example_Block</class>
            </example>
        </blocks>
        <helpers>
            <example>
                <class>MasteringMagento_Example_Helper</class>
            </example>
        </helpers>
    </global>
    <frontend>
        <routers>
        <example>
        <use>standart</use>
        <args>
            <frontName>example</frontName>
            <module>MasteringMagento_Example</module>
        </args>
        </example>
        </routers>
    </frontend>
</config>

在控制器文件夹文件HelloController.php中:

<?php
class MasteringMagento_Example_HelloController extends Mage_Core_Controller_Front_Action
{
    public function indexAction(){
        echo 'hello';
    }
    public function worldAction(){
        echo 'hello world';
    }
}

当我输入magento.local/example/hello/world时,我得到的是:

哎呀,我们的坏。。。

找不到您请求的页面,我们可以很好地猜测原因。

    If you typed the URL directly, please make sure the spelling is correct.
    If you clicked on a link to get here, the link is outdated.

哎呀,我们的坏。。。

找不到您请求的页面,我们可以很好地猜测原因。

    If you typed the URL directly, please make sure the spelling is correct.
    If you clicked on a link to get here, the link is outdated.

你能做什么?不要害怕,救援就在眼前!有很多方法可以让你回到Magento商店的轨道上。

    Go back to the previous page.
    Use the search bar at the top of the page to search for your products.
    Follow these links to get you back on track!
    Store Home | My Account

我正在运行以nginx为服务器的ubuntu,magento.local正在运行它加载起始页,但之后什么都不起作用,请帮帮我,可能是什么原因,我真的很沮丧你能做什么?不要害怕,救援就在眼前!有很多方法可以让你回到Magento商店的轨道上。

    Go back to the previous page.
    Use the search bar at the top of the page to search for your products.
    Follow these links to get you back on track!
    Store Home | My Account

我会这么说,因为你写的是standart而不是standard。

Michele