http://uvelirplaza.ru/?hello
в админке модуль появился, включил отображение вывода,
проверил пути, очистил кеш,
не работает.
в чем еще может быть дело?
05.12.2012 19:41
http://uvelirplaza.ru/?hello
05.12.2012 20:47
app
etc
modules
Alanstormdotcom_Weblog.xml
code
local
Alanstormdotcom
Helloworld
Block
controllers
etc
Helper
Model
sql
design/frontend/default/modern
template
helloworld
helloworld.phtml
layout
local.xml
app/code/local/Alanstormdotcom/Helloworld/etc/config.xml
<?xml version="1.0"?>
<config>
<modules>
<Alanstormdotcom_Helloworld>
<version>0.1.0</version>
</Alanstormdotcom_Helloworld>
</modules>
</config>
app/etc/modules/Alanstormdotcom_Helloworld.xml
<?xml version="1.0"?>
<<config>
<modules>
<Alanstormdotcom_Helloworld>
<active>true</active>
<codePool>local</codePool>
</Alanstormdotcom_Helloworld>
</modules>
</config>
http://My_site/helloworld
app/code/local/Alanstormdotcom/Helloworld/controllers/IndexController.php
class Alanstormdotcom_Helloworld_IndexController extends Mage_Core_Controller_Front_Action {
public function indexAction() {
echo 'Hello Index!';
}
}
<frontend>
<routers>
<helloworld>
<use>standard</use>
<args>
<module>Alanstormdotcom_Helloworld</module>
<frontName>helloworld</frontName>
</args>
</helloworld>
</routers>
</frontend>
http://example.com/frontName/actionControllerName/actionMethod/
http://My_site/helloworld
http://My_site/helloworld/index
http://My_site/helloworld/index/index
http://exmaple.com/checkout/cart/add
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Untitled</title>
<meta name="generator" content="BBEdit 9.2" />
<style type="text/css"></style>
</head>
<body>
bla-bla-bla
</body>
</html>
<?xml version="1.0"?>
<layout version="0.1.0">
<default>
</default>
<helloworld_index_index>
<reference name="content">
<block type="core/template" name="helloworld" template="helloworld/helloworld.phtml" />
</reference>
</helloworld_index_index>
</layout>
06.12.2012 09:45
<?xml version="1.0"?>
<config>
<modules>
<Alanstormdotcom_Helloworld>
<version>0.1.0</version>
</Alanstormdotcom_Helloworld>
</modules>
<frontend>
<routers>
<helloworld>
<use>standard</use>
<args>
<module>Alanstormdotcom_Helloworld</module>
<frontName>helloworld</frontName>
</args>
</helloworld>
</routers>
</frontend>
</config>
06.12.2012 09:51
06.12.2012 11:04
app/etc/modules/Alanstormdotcom_Helloworld.xml <?xml version="1.0"?> <<config> ^^
06.12.2012 17:25
http://store.pulsestorm.net/products/no-frills-magento-layout
06.12.2012 17:34