如何在magento中运行扩展

问题描述:

我是magento的新手。我安装了magneto 1.9.2.4版本。我需要为magento创建扩展。我了解了创建扩展的文件结构,但无法知道如何运行任何人都可以指定如何运行扩展? 高级谢谢!如何在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> 

/无功/网络/ HTML/Magento的/应用程序的/ etc /模块/ 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/helloworldhttp://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

是已经存在。我只是改变我的网址运行本地主机/ magento/index.php /默认/ helloworld.thanks您的回复Mr.biblab路线 –

我想你是要求从头开始创建扩展吗? 请检查此链接以创建简单扩展。 http://inchoo.net/magento/programming-magento/magento-hello-world-module-extension/

而为了运行该扩展名,请重新加载Magento的前端或后端。

感谢

+0

感谢您的回复Mr.Mayur。我重新加载前端和后端仍然我错误“哎呀,我们的坏...“我使用url http://localhost/magento/index.php/inchoo-hellodeveloper来运行该程序。我只是使用该程序什么链接,你最喜欢我可以任何其他方式是目前得到输出请建议我? –

+0

你面对哪个错误?请清除缓存并运行它? – Mayur

+0

输入网址:http://127.0.0.1/magento/helloworld 请检查 – Mayur