
 <?php foreach($products as $p): ?>
<div class="col-lg-3 col-md-4 col-sm-6 col-xs-12">
    <div class="hovereffect">
       <img src="<?php echo base_url(); ?>assets/img/products/<?php echo $p['image']; ?>" alt="" class="product-img" />
        <div class="overlay">
           <h2><?php echo $p['name']; ?></h2>
           <a class="info" href="<?php echo base_url(); ?>cart/storedetails/<?php echo $p['id']; ?>">See More</a>
        </div>
    </div>
</div>
<?php endforeach;?>



