magento 第2炮 admin module

所有管理工作的网页,因为这同样的方式。 为了使自己的,你需要;

 

  1. 注册一个 controller 在你的 module. 或者重写 overloading controllers .
  2. 在你的 controller 的 action 方法 render the layout.
  3. 创建一个 layout file in the "app/design/adminhtml/default/layout" 目录 and 注册你的 "config.xml"
  4.  它必须匹配你的 route, controller and action.
  5. 添加一个 block to 显示a grid widget.
  6. 扩展 Mage_Adminhtml_Block_Widget_Grid 到自己的block.
  7. 添加  _prepareColumns() and   _prepareCollection() 方法  用于要连接数据库and 过滤结果

你可能感兴趣的:(数据库,Module,layout,action,overloading,Magento)