I've tried in both ways and nothing happens, maybe I'm thinking that
I'm using the default cakephp template and it has its own styles, and
the new row style it's not recognize by cake....

On Jun 19, 10:22 am, Rick <will...@gmail.com> wrote:
> Looking at the docs for $html->tableCells the call is expecting all of
> the table rows in one call.  (How else could it keep up with alternate
> row counts?)  From the manual:
>
> echo $html->tableCells(array(
>     array('Jul 7th, 2007', 'Best Brownies', 'Yes'),         // row 1
>     array('Jun 21st, 2007', 'Smart Cookies', 'Yes'),        // row 2
>     array('Aug 1st, 2006', 'Anti-Java Cake', 'No'),         // row 3
> ));
>
> For your array something like this should work:
>
> <table>
> <?=
> echo $html->tableCells($autors, array ('bgcolor'=>'#FFCC99'));
> ?>
> </table>
>
> On Jun 18, 11:28 am, "nsens...@hotmail.com" <nsens...@hotmail.com>
> wrote:
>
> > Hi, new at cakephp, so I'm trying with some tutorials, but using
> > tablecells doesn't work with bgcolor, I get the table with rows and
> > data but all rows are white, I mean odds and even rows are in same
> > color, what I'm doing wrong?
>
> > <table>
> > <?php foreach($autors as $row) {
> > echo $html->tableCells( array (  $row['Autor']['id'],
> >                                  $row['Autor']['nombre'],
> >                                  $row['Autor']['apellido'],
> >                                  $row['Autor']['fecha_nacimiento'],
> >                                  $row['Autor']['fecha_defuncion'] ) ,
>
> >                                  array ('bgcolor'=>'#FFCC99'));}
> > ?>
> > </table>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to