for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
*
* @category Mygento
* @package Mygento_Yandexdelivery
* @copyright 2017 NKS LLC. (http://www.mygento.ru)
* @license GPLv2
*/
class Mygento_Yandexdelivery_Block_Adminhtml_Shipment extends Mage_Adminhtml_Block_Widget_Grid_Container
You can fix this by adding a namespace to your class:
namespace YourVendor; class YourClass { }
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.
{
public function _construct()
$this->_controller = 'adminhtml_shipment';
$this->_blockGroup = 'yandexdelivery';
$this->_headerText = Mage::helper('yandexdelivery')->__('Shipment Manager');
$this->_addButtonLabel = Mage::helper('yandexdelivery')->__('Add shipment');
parent::_construct();
}
public function _beforeToHtml()
$this->removeButton('add');
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.