2016-08-24 4 views
0

私はmagentoの初心者です。私はmagneto 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の/アプリの/ 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

イエスの存在であるかどうかを設定 - >高度なメニューの最初のチェックが存在しています。私はあなたの返信のためにlocalhost/magento/index.php/default/helloworld.thanksを実行するために私のURLを変更しましたMr.biblab rout –

答えて

0

最初から拡張子を作成するよう求めていると思いますか? シンプルな拡張機能を作成するには、このリンクをチェックしてください。 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

URLを入力してください:http://127.0.0.1/magento/helloworld そして、 – Mayur

関連する問題