I am writing a module for magento1.9. Please help us set attributes for app / design / frontend / rwd / default / layout / kalinin_form.xml:
<?xml version="1.0" ?> <layout> <kalininform_index_index> <reference name="content"> <block type="kalininform/form" template="Kalinin_Form/index.phtml" /> </reference> </kalininform_index_index> </layout>
As you can see, now my type attribute (and maybe others) is set incorrectly.
The problem is that the browser shows a page with an empty content area at localhost / magento3 / index.php / form
I cite the rest of the module code.
app / design / frontend / rwd / default / template / Kalinin_Form / index.phtml:
<?php echo('qqqqqqqqqqqqq');
app / code / local / Kalinin / Form / controllers / IndexController.php:
<?php class Kalinin_Form_IndexController extends Mage_Core_Controller_Front_Action { public function indexAction() { $this->loadLayout(); $this->renderLayout(); } }
app / code / local / Kalinin / Form / Block / Form.php:
<?php class Kalinin_Form_Block_Form extends Mage_Core_Block_Template { public function getNewsCollection() { Mage::log("Your Log Message"); return true; } }
app / code / local / Kalinin / Form / etc / config.xml:
<?xml version="1.0" ?> <config> <modules> <Kalinin_Form> <version>0.0.1</version> </Kalinin_Form> </modules> <frontend> <layout> <updates> <kalininform> <file>kalinin_form.xml</file> </kalininform> </updates> </layout> <routers> <kalininform> <use>standard</use> <args> <module>Kalinin_Form</module> <frontName>form</frontName> </args> </kalininform> </routers> </frontend> <global> <blocks> <Kalinin_Form> <class>Kalinin_Form_Block</class> </Kalinin_Form> </blocks> </global> </config>
In general, I have a problem with understanding attributes in app / design / frontend / rwd / default / layout / kalinin_form.xml. No official documentation. I would be grateful if you explain what's what.
ps: nothing is written to system.log or exception.log