我必须为 magento 1.8 编写一个自定义登录模块,我是 magento 的新手,在谷歌搜索后我找到了这个教程,但是有一个大问题
创建模块后,当我想加载自己的页面时,出现 404 错误
我可以' t在magento文档上找到任何东西,请帮忙
这是我的代码:
/app/code/local/Test/Mymodule/etc/config.xml
<?xml version="1.0" encoding="utf-8"?>
<config>
<modules>
<Test_Mymodule>
<version>0.1.0</version>
</Test_Mymodule>
</modules>
<!-- This node contains parameters, available on frontend -->
<frontend>
<!-- Module aliases are located in this block -->
<routers>
<!-- This node's name should be the same as our alias -->
<mymodule>
<!-- use parameter specifies which of basic routers needs to be used.
This can be "standard" for frontend or "admin" for backend -->
<use>standard</use>
<!-- router arguments block -->
<args>
<!-- This parameter specifies the full name of out module -->
<module>Test_Mymodule</module>
<!-- This parameter sets module alias -->
<frontName>mymodule</frontName>
</args>
</mymodule>
</routers>
<layout>
<updates>
<helloworld>
<file>mymodule.xml</file>
</helloworld>
</updates>
</layout>
</frontend>
</config>
/app/etc/modules/Test_Mymodule.xml
<?xml version="1.0" encoding="utf-8"?>
<config>
<modules>
<Test_Mymodule>
<active>true</active>
<codePool>local</codePool>
</Test_Mymodule>
</modules>
</config>
/app/code/local/Test/Mymodule/controllers/IndexController.php
class Test_Mymodule_IndexController extends Mage_Core_Controller_Front_Action
{
public function indexAction()
{
echo "test";
}
}