So far I have created my own module with an index controller.
public function indexAction()
{
$this->loadLayout();
$thing = $this->getLayout()->createBlock('Mage_Core_Block_Template','two',array('template' => 'myorg/mymod/mytemplate.phtml'));
$this->getLayout()->getBlock('content')->append($thing);
$this->renderLayout();
}
I have been able to specify the layout of the controller programmatically, but I would like to specify it using the layout xml if that's possible.
Also I would like to specify this in such a way that I can use the
<?php $this->getChildHtml('xxx'); ?>
function in my template.
How do I do this?
P.S I am just at Hello world in the area of custom module making so I will need to know the correct xml conventions to use to add the template.