私が欲しいのは、「新規追加」ボタンのアクションを変更することです
class World_Exporter_Block_Adminhtml_Attribute extends Mage_Adminhtml_Block_Widget_Grid_Container{
public function __construct()
{
$location = str_replace('new', 'newMap', $this->getCreateUrl());
$this->_controller = 'adminhtml_attribute';
$this->_blockGroup = 'exporter';
$this->_headerText = Mage::helper('exporter')->__('Attribute Manager ');
$this->_addButtonLabel = Mage::helper('exporter')->__('Add Item');
parent::__construct();
$this->setCreateUrl($location);
$this->_addButton('add', array(
'label' => $this->getAddButtonLabel() ,
'onclick' => 'setLocation(\'' . $location .'\')',
'class' => 'add',
));
// echo $this->getCreateUrl();
}
}
いろいろ試した後でも、「newAction」を他のものに変更できます.. Plz help