如何在 magento 中 运行 扩展
how to run extensions in the magento
我是新手 magento.I 安装了 magneto 1.9.2.4 version.I 需要为 magento.I 创建扩展名了解了创建扩展名的文件结构但不知道如何创建run.Can 有人指定如何 运行 扩展吗?
提前致谢!
/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";
}
}
?>
i 运行 此代码使用 http://localhost/magento/helloworld also 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
谁能建议如何 运行?
我想你是在要求从头开始创建扩展,对吧?
请检查此 link 以创建简单的扩展。
http://inchoo.net/magento/programming-magento/magento-hello-world-module-extension/
对于 运行 该扩展,请重新加载 Magento 的前端或后端。
谢谢
我是新手 magento.I 安装了 magneto 1.9.2.4 version.I 需要为 magento.I 创建扩展名了解了创建扩展名的文件结构但不知道如何创建run.Can 有人指定如何 运行 扩展吗? 提前致谢!
/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";
}
}
?>
i 运行 此代码使用 http://localhost/magento/helloworld also 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
谁能建议如何 运行?
我想你是在要求从头开始创建扩展,对吧? 请检查此 link 以创建简单的扩展。 http://inchoo.net/magento/programming-magento/magento-hello-world-module-extension/
对于 运行 该扩展,请重新加载 Magento 的前端或后端。
谢谢