首页 文章

如何在magento中运行扩展

提问于
浏览
0

我是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

任何人都可以建议如何运行?

1 回答

相关问题