我是magento开发的新手,我正在尝试为我的模块添加控制器,但它并未与我一起工作(出现404错误消息)。 这里是详细信息: /var/www/magento/app/code/local/Myproject/Helloworld/etc/config.xmlMagento模型控制器不执行
<?xml version='1.0'?>
<config>
<modules>
<Myproject_Helloworld>
<version>0.0.0.1</vresion>
</Myproject_Helloworld>
</modules>
<frontend>
<routers>
<helloworld>
<use>standard</use>
<args>
<module>Myproject_Helloworld</module>
<frontName>helloworld</frontName>
</args>
</helloworld>
</routers>
</frontend>
</config>
在/ var/WWW/Magento的/应用程序的/ etc /模块/ Myproject_Helloworld .XML
<?xml version='1.0'?>
<config>
<modules>
<Myproject_Helloworld>
<active>true</active>
<codePool>local</codePool>
</Myproject_Helloworld>
</modules>
</config>
/var/www/magento/app/code/local/Myproject/Helloworld/controllers/IndexController.php
<?php
class Myproject_Helloworld_IndexController extends Mage_Core_Controller_Front_Action
{
public function indexAction()
{
echo 'Hello world!';
}
}
?>
我在尝试URL:localhost/magento/helloworld/index/index任何想法 请提前.. thanx。在管理
试试这个:本地主机/ Magento的/ index.phphelloworld /指数/指数 – sergio
尝试本地主机/ Magento的/ index.php文件/的HelloWorld /指数/指数 –
请在你的config.xml检查 0.0.0.1其拼写错误 –