我正在关注2本书:Magento Extension Development入门。和官方的“Magento Extension Development v1.0”。 我无法让我的扩展回应" Hello World"。
我相信我需要照顾3个区域,以便回应" Hello World":
从app/etc/modules/Froggyline_HappyHour.xml
激活模块。
设置模块配置app/code/community/Froggyline/HappyHour/etc/config.xml
<?xml version="1.0" encoding="UTF-8"?>
<config>
<modules>
<Froggyline_HappyHour>
<version>0.0.0</version>
</Froggyline_HappyHour>
</modules>
<frontend>
<routers>
<froggyline_happyhour>
<use>standard</use>
<args>
<module>Froggyline_HappyHour</module>
<frontName>happyhour</frontName>
</args>
</froggyline_happyhour>
</routers>
</frontend>
</config>
添加app/code/community/Froggyline/HappyHour/controller/GreetingController.php
<?php
class Froggyline_HappyHour_GreetingController extends Mage_Core_Controller_Front_Action
{
public function helloWorldAction()
{
echo 'Hello World';
}
}
?>
我正在访问以下网址:http://localhost/happyhour/greeting/helloWorld
并收到Http 404
。
我错过了哪一步,以便页面显示&#34; Hello World&#34;?