在magento的hello world不工作

在magento的hello world不工作,magento,Magento,我只想为我的magento网站创建一个单独的模块。我只需要按照前面提到的步骤操作。但我得到了404错误 我不知道为什么会这样。我在管理面板中有我的默认商店视图。这就是它不起作用的原因吗 这是我当前正在运行以打印“Hello index”的url 如果可以的话,请帮帮我。我在这里问stackoverflow,因为那个博客已经有3年历史了,所以我不会很快得到回复 config.xml <config> <modules> <Alanst

我只想为我的magento网站创建一个单独的模块。我只需要按照前面提到的步骤操作。但我得到了404错误

我不知道为什么会这样。我在管理面板中有我的默认商店视图。这就是它不起作用的原因吗

这是我当前正在运行以打印“Hello index”的url

如果可以的话,请帮帮我。我在这里问stackoverflow,因为那个博客已经有3年历史了,所以我不会很快得到回复

config.xml

<config>    
    <modules>
        <Alanstormdotcom_Helloworld>
            <version>0.1.0</version>
        </Alanstormdotcom_Helloworld>
    </modules>
</config> 

<config>    
    <frontend>
        <routers>
            <helloworld>
                <use>standard</use>
                <args>
                    <module>Alanstormdotcom_Helloworld</module>
                    <frontName>helloworld</frontName>
                </args>
            </helloworld>
        </routers>  
    </frontend>
</config> 

0.1.0
标准
Alanstormdotcom_Helloworld
地狱世界
和Alanstormdotcom_Helloworld.xml

<config>
    <modules>
        <Alanstormdotcom_Helloworld>
            <active>true</active>
            <codePool>local</codePool>
        </Alanstormdotcom_Helloworld>
    </modules>
</config>

真的
地方的
您在config.xml文件中使用了两次,这会导致错误。您的配置文件应该是这样的

<config>    
<modules>
    <Alanstormdotcom_Helloworld>
        <version>0.1.0</version>
    </Alanstormdotcom_Helloworld>
</modules>   
<frontend>
    <routers>
        <helloworld>
            <use>standard</use>
            <args>
                <module>Alanstormdotcom_Helloworld</module>
                <frontName>helloworld</frontName>
            </args>
        </helloworld>
    </routers>  
</frontend>
</config> 

您是否清除了magento配置缓存目录(normaly var/cache)。@seb请告诉我如何清除此缓存我已清除系统/缓存管理缓存删除其中的所有文件/目录。有3个选项“启用”、“禁用”和“刷新”。我已经尝试了所有3种方法,但都没有成功:(请给出config.xml
<?php

class Myproject_Helloworld_IndexController extends Mage_Core_Controller_Front_Action
{
   public function indexAction()
  {
      echo 'Hello world!';
  }
}
yourdomain.com/index.php/hellworld