我是magento的新手。我安装了磁盘1.9.2.4版本。我需要为magento创建扩展。我了解了创建扩展的文件结构,但不知道如何运行。任何人都可以指定如何运行延期? 提前谢谢!
/var/www/html/magento/app/code/local/Multidots/HelloWorld/etc/config.xml
<?xml version="1.0"?>
<config>
<modules>
<Multidots_HelloWorld>
<version>0.1.0</version>
</Multidots_HelloWorld>
</modules>
<frontend>
<routers>
<helloworld>
<use>standard</use>
<args>
<module>Multidots_HelloWorld</module>
<frontName>helloworld</frontName>
</args>
</helloworld>
</routers>
</frontend>
<admin>
<routers>
<helloworld>
<use>admin</use>
<args>
<module>Multidots_HelloWorld</module>
<frontName>admin_helloworld</frontName>
</args>
</helloworld>
</routers>
</admin>
</config>
/var/www/html/magento/app/etc/modules/Multidots_HelloWorld.xml
<?xml version="1.0"?>
<config>
<modules>
<Multidots_HelloWorld>
<active>true</active>
<codePool>local</codePool>
</Multidots_HelloWorld>
</modules>
</config>
/var/www/html/magento/app/code/local/Multidots/HelloWorld/controllers/IndexController.php
<?php
class Multidots_HelloWorld_IndexController extends Mage_Core_Controller_Front_Action{
public function indexAction() {
echo "Huhh...., I knew you can do it!!!n";
echo "Let's do it in proper way, you konow... ;) :D :P";
}
}
?>
我使用http://localhost/magento/helloworld http://localhost/magento/index.php/helloworld运行此代码,但我收到了错误
Whoops, our bad...
The page you requested was not found, and we have a fine guess why.
If you typed the URL directly, please make sure the spelling is correct.
If you clicked on a link to get here, the link is outdated.
What can you do?
Have no fear, help is near! There are many ways you can get back on track with Magento Store.
Go back to the previous page.
Use the search bar at the top of the page to search for your products.
Follow these links to get you back on track!
Store Home | My Account
任何人都可以建议如何运行?
答案 0 :(得分:0)
我认为你要求从头开始创建扩展吗? 请检查此链接以创建简单的扩展名。 http://inchoo.net/magento/programming-magento/magento-hello-world-module-extension/
对于延伸运行,请重新加载Magento的前端或后端。
由于