Try this,
Tutsplus_Demo.xml
<?xml version="1.0"?>
<config>
<modules>
<Tutsplus_Demo>
<active>true</active>
<codePool>local</codePool>
<version>0.1.0</version>
</Tutsplus_Demo>
</modules>
</config>
app/code/local/Tutsplus/Demo/Block/Index.php
<?php
class Tutsplus_Demo_Block_Index extends Mage_Core_Block_Template{
}
app/code/local/Tutsplus/Demo/controllers/IndexController.php
<?php
class Tutsplus_Demo_IndexController extends Mage_Core_Controller_Front_Action{
public function IndexAction() {
$this->loadLayout();
$this->getLayout()->getBlock("head")->setTitle($this->__("Demo"));
$breadcrumbs = $this->getLayout()->getBlock("breadcrumbs");
$breadcrumbs->addCrumb("home", array(
"label" => $this->__("Home Page"),
"title" => $this->__("Home Page"),
"link" => Mage::getBaseUrl()
));
$breadcrumbs->addCrumb("demo", array(
"label" => $this->__("Demo"),
"title" => $this->__("Demo")
));
$this->renderLayout();
}
}
app/code/local/Tutsplus/Demo/etc/config.xml
<?xml version="1.0"?>
<config>
<modules>
<Tutsplus_Demo>
<version>0.1.0</version>
</Tutsplus_Demo>
</modules>
<frontend>
<routers>
<demo>
<use>standard</use>
<args>
<module>Tutsplus_Demo</module>
<frontName>demo</frontName>
</args>
</demo>
</routers>
<layout>
<updates>
<demo>
<file>demo.xml</file>
</demo>
</updates>
</layout>
</frontend>
<global>
<helpers>
<demo>
<class>Tutsplus_Demo_Helper</class>
</demo>
</helpers>
<blocks>
<demo>
<class>Tutsplus_Demo_Block</class>
</demo>
</blocks>
</global>
</config>
app/code/local/Tutsplus/Demo/Helper/Data.php
<?php
class Tutsplus_Demo_Helper_Data extends Mage_Core_Helper_Abstract
{
}
app/design/frontend/customtpackage/theme/layout/demo.xml
<?xml version="1.0"?>
<layout version="0.1.0">
<demo_index_index>
<reference name="root">
<action method="setTemplate"><template>page/1column.phtml</template></action>
</reference>
<reference name="content">
<block type="demo/index" name="demo_index" template="demo/index.phtml"/>
</reference>
</demo_index_index>
</layout>
app/design/frontend/customtpackage/theme/template/demo/index.phtml
<?php echo "Hello word";?>
<demo>
instead<tutsplus_demo>
inconfig.xml
. Also try with changing name toTutsplus
insteadTutsPlus
. Clear cache tooecho
please useMage::log(print('Hello World', true));
and don't forget to enable log in admin backend. check your log filevar/log/system.log