Posted By

necode on 07/28/11


Tagged

module admin grid magento


Versions (?)

Magento Create Admin (Backend) Module with Grids


 / Published in: PHP
 

URL: http://www.webspeaks.in/2010/08/create-admin-backend-module-in-magento.html

If you are creating an admin module for Magento (learn creating admin module in Magento) then you would surely be asked to create grids (eg. for order listing). Creating grids can be somewhat difficult for the novice Magento programmers, but in this tutorial we will create a grid in the admin module in the simplest possible way. It is assumed that you are familiar with creating admin module in Magento.

  1. <?php
  2. class Company_Web_Block_Adminhtml_Web extends Mage_Adminhtml_Block_Widget_Grid_Container
  3. {
  4. public function __construct()
  5. {
  6. $this->_controller = 'adminhtml_web';
  7. $this->_blockGroup = 'web';
  8. $this->_headerText = Mage::helper('web')->__('Item Manager');
  9. $this->_addButtonLabel = Mage::helper('web')->__('Add Item');
  10. parent::__construct();
  11. }
  12. }
  13.  
  14. ...
  15. etc

Report this snippet  

You need to login to post a comment.