새로운 Magento 확장 기능을 사용 중입니다. Adminhtml 양식에서 "saveAndContinueEdit"버튼을 추가하고 싶습니다.내 양식에 SaveandContinueEdit 단추를 추가하는 방법은 무엇입니까?
이 코드를 Edit.php 파일에 추가했습니다.
$this->_addButton('saveandcontinue', array(
'label' => Mage::helper('adminhtml')->__('Save And Continue Edit'),
'onclick' => 'saveAndContinueEdit()',
'class' => 'save',
), -100);
하지만 그것을 클릭 whene,이 자바 스크립트 오류가 있습니다
Erreur : ReferenceError: saveAndContinueEdit is not defined Fichier Source : http://X.X.X.X/magento/index.php/slider/adminhtml_config/new/key
당신이 날 도와 줄 수 있습니까?
감사합니다.
어떻게 magento가 작동하는지 잘 모르겠지만 동일한 함수 호출에 대해 대문자와 소문자가있는 것을 볼 수 있습니다 : saveandcontinue' 및 saveAndContinueEdit() –