Ver Mensaje Individual
  #1 (permalink)  
Antiguo 20/05/2014, 12:14
Avatar de detective_jd
detective_jd
 
Fecha de Ingreso: abril-2011
Ubicación: Salto
Mensajes: 437
Antigüedad: 13 años
Puntos: 6
No muestra color de letra en registros cakePHP

Hola a todos, estoy probando cakePHP y resulta que no me muestra el color de letra de los registros de mi tabla en la bd, este es el código:

Usuario.php:

<?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.
*/

App::uses('AppModel', 'Model');

/**
* CakePHP Usuario
* @author Juan Diego Ocampo
*/
class Usuario extends AppModel { }

UsuariosController.php:

<?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.
*/
App::uses('AppController', 'Controller');

/**
* CakePHP UsuariosController
* @author Juan Diego Ocampo
*/
class UsuariosController extends AppController
{
function index()
{
$this->set('usuarios',$this->Usuario->find('all'));
}
}

index.ctp:

<h2>
Mantenimiento de Usuarios
</h2>
<?php if(empty($usuarios)): ?>
No hay Usuarios en la BD
<?php
else : ?>
<table>
<tr>
<th>Usuario</th>
<th>Nombre de Usuario</th>
<th>Contrase&ntilde;a</th>
<th>Nombres</th>
<th>Correo</th>
</tr>
<?php foreach ($usuarios as $usuario): ?>
<tr>
<td><?php $usuario['Usuario']['id'];?></td>
<td><?php $usuario['Usuario']['usuario'];?></td>
<td><?php $usuario['Usuario']['password'];?></td>
<td><?php $usuario['Usuario']['nombres'];?></td>
<td><?php $usuario['Usuario']['correo'];?></td>
</tr>
<?php
endforeach;
endif;
?>
</table>

soy nuevo en cakephp, el único problema que tiene es que no me muestra el color de letra de los registros, por favor necesito ayuda....

si me ayudan, se los agradece