Showing results for 
Search instead for 
Did you mean: 

Grid is showing blank page not loading grid data

Grid is showing blank page not loading grid data

I have created a custom module one part is working fine that is adminform now i have create a grid to show all the data saved in database. But all i get is blank page.

Here is my grid.php file:



   class OptFirst_ReviewMyCompany_Block_Adminhtml_Review_Grid extends
public function getGridUrl()
    return $this->getUrl('*/*/grid', array('_current' => true));

   public function __construct()

protected function _prepareCollection()
    $collection = Mage::getModel('optfirst_reviewmycompany/review')->getCollection();
    return parent::_prepareCollection();

protected function _prepareColumns()
    $this->addColumn('id', array(
        'header' => Mage::helper('reviewmycompany')->__('ID'),
        'align' => 'right',
        'width' => '10px',
        'index' => 'id',

    $this->addColumn('name', array(
        'header' => Mage::helper('reviewmycompany')->__('Name'),
        'align' => 'left',
        'index' => 'name',
        'width' => '50px',

    $this->addColumn('content', array(
        'header' => Mage::helper('reviewmycompany')->__('Description'),
        'width' => '150px',
        'index' => 'content',
    return parent::_prepareColumns();


And here is my controller:


       class OptFirst_ReviewMyCompany_Adminhtml_ReviewController extends Mage_Adminhtml_Controller_action

  public functio  indexAction() {

public function gridAction()


Can you please check what is wrong and why its not showing the grid container.




Re: Grid is showing blank page not loading grid data

Hi @Shoaib_Fareedi,


Have you created the UI Component for the grid? You need that in order to render the grid, provide pagination, sorting and other features.


Here is a reference from the Magento 2 Developer Documentation:


Best regards.


If my answer was useful, please give "Kudos" to this post.
If my answer helps you to resolve the problem, click on "Accept as Solution".