<?php require_once '../negocio/area.class.php'; require_once '../util/funciones/Funciones.class.php'; $objArea = new Area(); try { $registros = $objArea->listar(); // echo '<pre>'; // print_r($registros); // echo '</pre>'; } catch (Exception $exc) { Funciones::mensaje($exc->getMessage(), "e"); } ?> <table id="tabla-listado" class="table table-bordered table-striped"> <thead> <tr> <th> </th> <th>CODIGO</th> <th>NOMBRE ÁREA</th> <th>DEPENDENCIA</th> <th>OPCIÓN</th> </tr> </thead> <tbody> <?php for ($i = 0; $i < count($registros); $i++) { echo '<tr>';
<?php require_once '../negocio/area.class.php'; $objArea = new Area(); $resultado = $objArea->listar(); echo json_encode($resultado); ?>