I am working on a custom module, Grid section is working fine, I want to view the data in my custom tab,
This is my code.
app/code/local/Folder/Modulename/Block/Adminhtml/Adminquote/View/Tabs.php
$this->addTab("form_section", array(
"label" => Mage::helper("adminquote")->__("Quotation Details"),
"title" => Mage::helper("adminquote")->__("Quotation Details"),
"content" => $this->getLayout()->createBlock("adminquote/adminhtml_adminquote_view_tab_info")->toHtml(),
"active" => true
));
app/code/local/Folder/Modulename/Block/Adminhtml/Adminquote/View/Tab/Info.php
class Folder_Modulename_Block_Adminhtml_Adminquote_View_Tab_Info extends Mage_Adminhtml_Block_Template implements Mage_Adminhtml_Block_Widget_Tab_Interface
{
protected function _construct()
{
parent::_construct();
$this->setTemplate('adminquote/view/info.phtml');
}
}
app/design/adminhtml/default/default/layout/adminquote.xml
<adminquote_adminhtml_adminquote_view_tab_info>
<reference name="content">
<action method="addTab">
<name>adminhtml_adminquote_view_tab</name>
<block>adminquote/adminhtml_adminquote_view_tab_info</block>
</action>
</reference>
etc/config.xml
<?xml version="1.0"?>
<config>
<modules>
<Folder_Modulename>
<version>1.0.1</version>
</Folder_Modulename>
</modules>
<global>
<blocks>
<Folder_Modulename>
<class>Folder_Modulename_Block</class>
</Folder_Modulename>
</blocks>
</global>
<adminhtml>
<layout>
<updates>
<modulename>
<file>adminquote.xml</file>
</modulename>
</updates>
</layout>
</adminhtml>
</config>
I am getting error in system.log
2019-01-09T11:52:36+00:00 CRIT (2): Not valid template file:adminhtml/base/default/template/adminquote/view/Info.phtml
Info.phtml file exists in that path.
I don't know why its showing template not valid, Can anyone suggest me to fix this,
Thanks.