<h2>GALERÍA CAPACITACIÓN</h2> <hr> </div> <a class="btn-add" href="galeria_capacitacion_add.php">Agregar</a> <script lagnuaje="javascript"> function confirmar(){ return confirm("Estas seguro de querer borrar el registro?") } </script> <?php // require "functions/galerias.inc.php"; // traerGaleriaCapacitacion(); ?> <!-- START LOOP --> <?php $collection = GCapacitacion::all(); if (!is_null($collection)) { foreach ($collection as $k => $data) { ?> <div class='row'> <h1><?php echo $data->titulo; ?> </h1> <p><?php echo $data->descripcion; ?> </p> <img src='../upload/<?php echo $data->imagen; ?>