Я новичок в Magento.Я создал свой первый модуль после учебника, и я получаю 404 не найден.Что я сделал не так?
У меня есть такой макет папки:
my magento/app/local/tsg/trial/etc/config.xml
:
<?xml version="1.0" encoding="UTF-8"?>
<config>
<modules>
<tsg_trial>
<version>0.1.0</version>
</tsg_trial>
</modules>
<frontend>
<routers>
<hello_magento>
<use>standard</use>
<args>
<module>tsg_trial</module>
<frontName>hello</frontName>
</args>
</hello_magento>
</routers>
</frontend>
</config>
my magento/app/local/tsg/trial/controllers/indexController.php
:
class tsg_trial_IndexController extends Mage_Core_Controller_Front_Action {
public function indexAction() {
echo 'hello magento';
}
}
my magento/app/etc/modules/tsg_trial.xml
:
<?xml version="1.0" encoding="UTF-8"?>
<config>
<modules>
<tsg_trial>
<active>true</active>
<codePool>local</codePool>
</tsg_trial>
</modules>
</config>