<?php include_once realpath(__DIR__ . '/../entity/marca.php'); $marca = new entity_marca(); $marca->getMarca($_GET['id']); $nombre = $marca->getNombre(); include_once realpath(__DIR__ . '/form.php'); /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */
<?php include_once realpath(__DIR__ . '/../entity/marca.php'); $entity = new entity_marca(); $datos = $entity->listar(); ?> <a href="nuevo.php">Nuevo</a> <table> <thead> <tr> <th>Nombre</th> <th>Estado</th> <th>Acción</th> </tr> </thead> <?php foreach ($datos as $index) { ?> <tr> <td> <?php echo $index['marca_nombre']; ?> </td> <td> <?php echo $index['marca_flag_activo']; ?> </td> <td>