[eluser]penta997[/eluser]
Hi. I have problem with cart library. When I want to add items from database:
Code:
function addCards($id=1)
{
$query = $this->Kategorie_model->get_books_by_ID($id);
$item = $query->row();
$data = array
(
'id' => $id,
'name' => $item->BOOK_Title,
'qty' => 1,
'price' => $item->BOOK_Price
);
$this->cart->insert($data);
echo '<pre>';
var_dump($data);
}
var_dump displaing correct value, not empty. But when i call showCards function:
Code:
function showCarts()
{
$query = $this->cart->contents();
echo '<pre>';
print_r($query);
}
there is no data witch include polish dialectic signs and I can add only 4 records to carts library. How can I fix it? Please, help