增加Magento后台管理功能开发后台Controller,在模块的controllers目录下创建Adminhtml目录,新建一个Controller类。
class Glamour_CustomerMessage_Adminhtml_MessageController extends Mage_Adminhtml_Controller_Action
{ //设置当前激活的菜单 protected function _initAction(){ $this->loadLayout() ->_setActiveMenu('customer/message') ->_addBreadcrumb(Mage::helper('adminhtml')->__('Customer Message'), Mage::helper('adminhtml')->__('Customer Message')); return $this; } } |