I want to create tab in product edit area in magento, here is the code I and using but the tab is not added. Can someone check and tell me whats the problem ?
Emizentech_Nutriprof
config.xml-
<?xml version="1.0"?>
<config>
<modules>
<Emizentech_Nutriprof>
<version>0.0.1</version>
</Emizentech_Nutriprof>
</modules>
<global>
<blocks>
<nutriprof>Emizentech_Nutriprof_Block</nutriprof>
</blocks>
<helpers>
<nutriprof>
<class>Emizentech_Nutriprof_Helper</class>
</nutriprof>
</helpers>
</global>
<adminhtml>
<layout>
<updates>
<nutriprof>
<file>nutriprof.xml</file>
</nutriprof>
</updates>
</layout>
</adminhtml>
<admin>
<routers>
<adminhtml>
<args>
<modules>
<nutriprof before="Mage_Adminhtml">Emizentech_Nutriprof_Adminhtml</nutriprof>
</modules>
</args>
</adminhtml>
</routers>
</admin>
</config>
Emizentech/Nutriprof/Block/Adminhtml/Catalog/Product/Tab.php-
<?php
class Emizentech_Nutriprof_Block_Adminhtml_Catalog_Product_Tab extends Mage_Adminhtml_Block_Catalog_Product_Edit_Tabs
implements Mage_Adminhtml_Block_Widget_Tab_Interface
{
mage::log("hi",null,"bye.log");
public function _construct(){
parent::_construct();
$this->setTemplate('nutriprof/catalog/product/tab.phtml')
}
public function getTabLabel(){
return $this->('My Customt Tabs');
}
public function getTabTitle(){
return $this->__('Click here to view your custom tab content');
}
public function canShowTab(){
return true;
}
}
?>
app/design/adminhtml/default/default/layout/nutriprof.xml-
<?xml version="1.0"?>
<layout>
<adminhtml_catalog_product_edit>
<reference name="paroduct_tabs">
<action method="addTab">
<name>nutriprof</name>
<block>nutriprof/adminhtml_catalog_product_tab</block>
</action>
</reference>
</adminhtml_catalog_product_edit>
</layout>
app/design/adminhtml/default/default/template/nutriprof/catalog/product/tab.phtml-
<div>
<h1>hello</h1>
</div>