codeigniter의 카트 시스템에 이미지를 표시하고 싶습니다. 하지만 그렇게하지 못했습니다. 나는 codeigniter에서 새롭다. 그래서 너 한테 도움이 필요해. 여기 CodeIgniter에서 장바구니 시스템에 이미지를 표시하는 방법은 무엇입니까?
내 컨트롤러 :::입니다class Cart extends CI_Controller {
public function add_to_cart($product_id) { // adds a product to cart
$this->load->model('cart_model');
$result = $this->cart_model->selectProductByProductId($product_id);
$insert = array(
'id' => $product_id,
'qty' => 1,
'price' => $result->product_price,
'name' => $result->product_name,
'image' => $result->product_image
);
//$this->load->library('Cart');
$this->cart->insert($insert);
redirect("cart/show_cart");
}
보기 :::
<?php echo $items['image'] ?>
이 .. 카트보기 페이지에서 작동하지 않습니다 어쩌면 내가 카트 라이브러리 몇 가지 변화가 필요하지만, 내가 할 내가 편집하거나 업데이트하는 위치를 모릅니다. 제발 도와주세요.
작동 중입니다 –
이 이미지를 사용자의 전자 메일로 보내는 방법을 알려 주겠습니까? –
제발 받아 들여 보내주세요. 이 이미지를 사용자의 이메일로 보내시겠습니까? –