Codeigniter images do not download [closed]

3

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/';
    
asked by anonymous 09.09.2016 / 16:54

1 answer

-1

The problem was that the images folder was inside Application, I put a level off and it worked! problem solved.

    
09.09.2016 / 18:11