Tuesday, September 8, 2015

Remove 'Add New' button from Admin Grid

 Go to Namespace > Module > Block > Adminhtml > BlockFile.php


  • Add the following code in the constructor of this file.
  • It will be after the call to parent constructor.


parent::__construct(); 
$this->_removeButton('add');

No comments:

Post a Comment

Fatal error: Class Zend\Stdlib\Parameters contains 1 abstract method... magento 2

Fatal error: Class Zend\Stdlib\Parameters contains 1 abstract method and must therefore be declared abstract or implement the remaining met...