Re: tableCells and bgcolor doesn't work for me
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 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: > > > echo $html->tableCells($autors, array ('bgcolor'=>'#FFCC99')); > ?> > > > On Jun 18, 11:28 am, "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? > > > > > > echo $html->tableCells( array ( $row['Autor']['id'], > > $row['Autor']['nombre'], > > $row['Autor']['apellido'], > > $row['Autor']['fecha_nacimiento'], > > $row['Autor']['fecha_defuncion'] ) , > > > array ('bgcolor'=>'#FFCC99'));} > > ?> > > --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: tableCells and bgcolor doesn't work for me
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: tableCells($autors, array ('bgcolor'=>'#FFCC99')); ?> On Jun 18, 11:28 am, "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? > > > echo $html->tableCells( array ( $row['Autor']['id'], > $row['Autor']['nombre'], > $row['Autor']['apellido'], > $row['Autor']['fecha_nacimiento'], > $row['Autor']['fecha_defuncion'] ) , > > array ('bgcolor'=>'#FFCC99'));} > ?> > --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
Re: tableCells and bgcolor doesn't work for me
Hi. why don't you do it with css ? :) .alt{ background-color: #000; } > $row... $row... greets Andreas nsens...@hotmail.com schrieb: > 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? > > > echo $html->tableCells( array ( $row['Autor']['id'], > $row['Autor']['nombre'], > $row['Autor']['apellido'], > $row['Autor']['fecha_nacimiento'], > $row['Autor']['fecha_defuncion'] ) , > > array ('bgcolor'=>'#FFCC99'));} > ?> > > > > > --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---
tableCells and bgcolor doesn't work for me
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? tableCells( array ( $row['Autor']['id'], $row['Autor']['nombre'], $row['Autor']['apellido'], $row['Autor']['fecha_nacimiento'], $row['Autor']['fecha_defuncion'] ) , array ('bgcolor'=>'#FFCC99'));} ?> --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---