【发布时间】:2015-09-27 12:31:01
【问题描述】:
访问表单时出现以下错误:
Class MP_Search_Block_Adminhtml_Option_Edit_Tab_Form contains 1 abstract method and must therefore be declared abstract or implement the remaining methods (Mage_Adminhtml_Block_Widget_Tab_Interface::getTabLabel) in C:\xampp\apps\magento\htdocs\app\code\local\MP\Search\Block\Adminhtml\Option\Edit\Tab\Form.php on line 169
我已经实现了Mage_Adminhtml_Block_Widget_Tab_Interface:
class MP_Search_Block_Adminhtml_Option_Edit_Tab_Form extends Mage_Adminhtml_Block_Widget_Form implements Mage_Adminhtml_Block_Widget_Tab_Interface {
public function getTabTitle() {
return Mage::helper('catalogrule')->__('Conditions');
}
public function canShowTab() {
return true;
}
public function isHidden() {
return false;
}
}
那么我错过了什么?
编辑:我添加了可能导致错误的方法。
据我了解,我需要为那些工作实施Mage_Adminhtml_Block_Widget_Tab_Interface。
正如您现在可能知道的那样,我的目标是在我的“选项”表单中实现一个条件字段。
【问题讨论】:
标签: php class magento abstract-class implements