我是magento的新手。 我已成功将联系人页面的记录添加到数据库中。现在我无法将其列为admin.I' m使用magento 1.9.2.0 我的admin html xml是app \ code \ local \ Avijit \ Contacts \ etc \ adminhtml.xml
<?xml version="1.0"?>
<config>
<menu>
<mycustomtab>
<title>Contacts</title>
<sort_order>71</sort_order>
<children>
<index>
<title>Contact us</title>
<sort_order>0</sort_order>
<action>adminhtml/contacts/</action>
</index>
</children>
</mycustomtab>
</menu>
<acl>
<resources>
<admin>
<children>
<contacts>
<title>My Controller</title>
<sort_order>200</sort_order>
<children>
<index>
<title>Index Action</title>
<sort_order>1</sort_order>
</index>
</children>
</contacts>
</children>
</admin>
</resources>
</acl>
</config>
应用\代码\本地\ Avijit \联系人\控制器\ Adminhtml \ ContactsController.php
class Avijit_Contacts_Adminhtml_ContactsController extends Mage_Adminhtml_Controller_Action
{
public function indexAction()
{
$this->loadLayout()->_setActiveMenu('contacts/items');
$this->renderLayout();
}
}
应用\设计\ adminhtml \默认\默认\布局\ contacts.xml
<layout version="0.1.0">
<contacts_adminhtml_contacts_index>
<reference name="content">
<block type="core/template" name="domain" template="contacts/contacts.phtml"/>
</reference>
</contacts_adminhtml_contacts_index>
</layout>
应用\设计\ adminhtml \默认\默认\模板\接触\ contacts.phtml
显示404页面。我的问题是如何显示联系人记录(来自数据库)?