Prestashop에 내 첫 번째 모듈을 쓰고 있습니다. 백 오피스에 데이터를 제출하면 모듈의 구성 페이지가로드됩니다. 그러나 나는 그 형태에 머물고 싶다. 이것을 어떻게 할 수 있습니까?issubmit 후 페이지 정의하기
if (Tools::isSubmit('toggleanswers')) {
$id_answer = Tools::getValue('id_answer');
if($this->toggleAnswer($id_answer)) {
$this->_html .= $this->displayConfirmation($this->l('Entry status changed'));
}
else {
$this->_html .= $this->displayError(implode($this->_errors, '<br />'));
}
}
이것은 내 기능의 모습입니다. 구성 페이지로 돌아 안 그것을 토글을 클릭하면 ... 내 양식의 URL은 다음과 같습니다 /index.php?controller=AdminModules & 구성 = 질문 & 모듈 이름 = 질문 & id_question = 1 & updatequestions & 토큰 = ccd237618500f4c18f42d1a4fe971aa9을 당신이 좋은 포스트 프로세스를 관리 한 경우
if (Tools::isSubmit('toggleanswers')) { $id_answer = Tools::getValue('id_answer'); if($this->toggleAnswer($id_answer)) { Tools::redirectAdmin($this->context->link->getAdminLink('AdminModules', true).'&conf=6&configure='.$this->name.'&tab_module='.$this->tab.'&module_name='.$this->name.'&id_question='.$id_question.'&update_questions'); } else { $this->_html .= $this->displayError(implode($this->_errors, '
')); } }
모든 확인을 경우 당신은 당신의 '질문의 양식에 리디렉션해야합니다
어디서 찾을 수 있습니까? – sarcom
_postprocess()라는 함수에서 getContent()에서이 함수를 호출했습니다. –