0
내가 opencart에서 새로운 입력 텍스트를 추가하기 위해 노력하고있어 나는 컨트롤러에서정의되지 않은 인덱스 (opencart)
<label><?php echo $text_comments; ?></label>
<textarea name="comment" rows="8" style="width: 98%;"><?php echo $comment; ?></textarea>
<label><?php echo $text_referred; ?></label> // My Code
<input type="text" name="referred" value="<?php echo $referred; ?>" />
을 추가 payment_method.tpl, 내보기 payment_method.tpl I
if (!$json) {
$this->session->data['payment_method'] = $this->session->data['payment_methods'][$this->request->post['payment_method']];
$this->session->data['comment'] = strip_tags($this->request->post['comment']);
$this->session->data['referred'] = $this->request->post['referred']; //My Code
}
및
,691,363 추가 내 모델에서210if (isset($this->session->data['referred'])) {
$this->data['referred'] = $this->session->data['referred']; //Variable
} else {
$this->data['referred'] = '';
}
Order.php
$this->db->query("INSERT INTO `" . DB_PREFIX . "order` SET invoice_prefix = '" . $this->db->escape($data['invoice_prefix']) . "', referred = '" . $this->db->escape($data['referred']) . "',
내 오류 로그
2014-09-21 12:57:42 - PHP Notice: Undefined index: referred in /home/dlars/public_html/tempdir/vqmod/vqcache/vq2-catalog_controller_checkout_payment_method.php on line 212
2014-09-21 12:57:42 - PHP Notice: Undefined index: referred in /home/dlars/public_html/tempdir/vqmod/vqcache/vq2-catalog_model_checkout_order.php on line 4
을 보여 내 컨트롤러에 게시되지 않는 내보기에 무엇이든 수집, 그러나 내가 정의 할 수있는 곳이 어디인지는 잘 모르겠습니다. OC에서 뷰 내부에 정의 된 내용이 컨트롤러에 게시 된 것 같습니다.
누군가가 여기서 문제는 분명 사전
니스! 주변을 둘러 보았고 어디서나 언급하지 않았습니다. – user2015172