This is my controller
<?php
class Karmick_Refer_IndexController extends Mage_Core_Controller_Front_Action{
public function indexAction()
{
$this->loadLayout();
$this->getLayout()->getBlock('head')->setTitle($this->__('Earn Money'));
$this->renderLayout();
}
public function getCodeAction(){
$this->loadLayout();
$this->renderLayout();
}
public function checkAction(){
die('Hello');
}
}
?>
This is my layout xml file code
<?xml version="1.0"?>
<layout version="0.0.1">
<default>
<remove name="left"/>
<reference name="head">
<action method="addItem"><type>skin_css</type><name>css/karmick/check.css</name></action>
</reference>
<reference name="root">
<action method="setTemplate"><template>page/2columns-right.phtml</template></action>
</reference>
</default>
<refer_index_index>
<reference name="content">
<block type="refer/refer" name="refer">
<action method="setTemplate">
<template>karmick/refer.phtml</template>
</action>
</block>
</reference>
</refer_index_index>
</layout>
This is my config.xml
<?xml version="1.0"?>
<config>
<modules>
<Karmick_Refer>
<version>0.0.1</version>
</Karmick_Refer>
</modules>
<frontend>
<routers>
<karmick_refer>
<use>standard</use>
<args>
<module>Karmick_Refer</module>
<frontName>refer</frontName>
</args>
</karmick_refer>
</routers>
<layout>
<updates>
<karmick_refer>
<file>karmick/refer.xml</file>
</karmick_refer>
</updates>
</layout>
</frontend>
<global>
<models>
<refer>
<class>Karmick_Refer_Model</class>
<resourceModel>refer_mysql4</resourceModel>
</refer>
<refer_mysql4>
<class>Karmick_Refer_Model_Mysql4</class>
<entities>
<refer>
<table>karmick_refer</table>
</refer>
</entities>
</refer_mysql4>
</models>
<resources>
<refer_write>
<connection>
<use>core_write</use>
</connection>
</refer_write>
<refer_read>
<connection>
<use>core_read</use>
</connection>
</refer_read>
<refer_setup>
<setup>
<module>Karmick_Refer</module>
<class>Karmick_Refer_Model_Resource_Mysql4_Setup</class>
</setup>
</refer_setup>
<connection>
<use>core_setup</use>
</connection>
</resources>
<helpers>
<refer>
<class>Karmick_Refer_Helper</class>
</refer>
</helpers>
<blocks>
<refer>
<class>Karmick_Refer_Block</class>
</refer>
</blocks>
</global>
</config>
But still my template file is not including.. When i am giving this code in Then template is coming..
Any idea what i am doing wrong??
config.xml
hererefer_index_index
tokarmick_refer_index_index