Это мой файл активации в app/etc/modules/My_Test.xml
<?xml version="1.0" encoding="UTF-8"?>
<config>
<modules>
<My_Test>
<active>true</active>
<codePool>local</codePool>
</My_Test>
</modules>
</config>
Это мой файл конфигурации в app/code/local/MY/Test/etc/config.xml
<?xml version="1.0" encoding="UTF-8"?>
<config>
<global>
<helpers>
<my_test>
<class>My_Test_Helper</class>
</my_test>
</helpers>
<models>
<mytest>
<class>My_Test_Model</class>
</my_test>
</models>
<blocks>
<my_test>
<class>My_Test_Block</class>
</my_test>
</blocks>
</global>
<frontend>
<routers>
<my_test>
<use>standard</use>
<args>
<module>My_Test</module>
<frontName>test</frontName>
</args>
</my_test>
</routers>
</frontend>
</config>
Это код моих контроллеров в app/core/local/My/Test/controllers/IndexController.php
<?php
class My_Test_IndexController extends Mage_Core_Controller_Front_Action
{
public function indexAction()
{
echo "This is the Module MyTest";
}
}
Теперь, когда я даю URL-адрес 176.58.99.99/herbal/index.php/test/index/index 176.58.99.99/herbal/index.php/test/ 176.58.99.99/herbal/test/index/index 176.58.99.99/herbal /тестовое задание/
Показывает ошибку 404
mytest
иmy_test
), или это просто ошибка копирования/вставки? - person Jürgen Thelen   schedule 19.09.2012