cancel
Showing results for 
Search instead for 
Did you mean: 

Hello friends ! Please tell me how to connect my template to admin?

Hello friends ! Please tell me how to connect my template to admin?

If there are several errors, please specify all. Thank you !

<?
xml version="1.0" ?>
<config>
<modules>
<RunwaySale_Merchandiser>
<version>0.0.1</version>
</RunwaySale_Merchandiser>
</modules>
<frontend>
<routers>
<merch>
<use>standard</use>
<args>
<module>RunwaySale_Merchandiser</module>
<frontName>merch</frontName>
</args>
</merch>
</routers>
</frontend>
<admin>
<routers>
<admin1112>
<use>admin</use>
<args>
<module>RunwaySale_Merchandiser</module>
<frontName>admin1112</frontName>
</args>
</admin1112>
</routers>
</admin>
<global>
<blocks>
<merch>
<class>RunwaySale_Merchandiser_Block</class>
</merch>
<adminhtml>
<rewrite>
<catalog_category_tree>RunwaySale_Merchandiser_Block_Adminhtml_Catalog_Category_Tree</catalog_category_tree>
</rewrite>
</adminhtml>
</blocks>
<helpers>
<runwaysalemerchandiser>
<class>RunwaySale_Merchandiser_Helper</class>
</runwaysalemerchandiser>
</helpers>
</global>
<adminhtml>
<menu>
<runwaysalemerchandiser module="runwaysalemerchandiser">
<title>runwaysalemerchandiser</title>
<sort_order>1</sort_order>
<action>admin1112/adminhtml_merch</action>
</runwaysalemerchandiser>
</menu>
<layout>
<updates>
<merch>
<file>runwaysale.xml</file>
</merch>
</updates>
</layout>
</adminhtml>
</config>

controllers/Adminhtml/MerchController.php
class RunwaySale_Merchandiser_Adminhtml_MerchController extends Mage_Adminhtml_Controller_Action
{
public function indexAction()
{
//die('1111');
$this->loadLayout();
$this->renderLayout();
}
}

app/design/adminhtml/default/default/layout/runwaysale.xml
<?xml version="1.0" ?>
<layout version="0.1.0">
<admin1112_merch_index>
<reference name="content">
<block type="merch/adminhtml" name="runwaysale" template="index.phtml" />
</reference>
</admin1112_merch_index>
</layout>

Path template
app/design/adminhtml/default/default/template/runwaysale/index.phtml


 
Tags (3)