I'm new using CI, and I'm having problems with it because it does not load the images in localhost environment (using XAMPP) . I have already inspected and verified if the path is all ok, and this is in fact, but nothing of the image to upload.
I have already tested on localhost , but without using the IC and the image loads normally, I would like someone with more knowledge to help me.
<div id="products">
<ul>
<?php foreach ($products as $product): ?>
<li>
<?php echo form_open("shop/add"); ?>
<div class="name"><?php echo $product->name; ?></div>
<div class="thumb">
<?php echo img(array(
'src' => 'img/'.$product->image,
'class' => 'thumb',
'alt' => $product->name)); ?>
</div>
<div class="price">$<?php echo $product->price; ?></div>
<?php echo form_close(); ?>
</li>
<?php endforeach; ?>
</ul>
</div>
$config['base_url'] = 'http://localhost/carrinho/';