foreach loop and row color

2006-12-04 Thread mschwer

Hello!

To retrieve the Output on my views template i used the normal foreach()
loop.

? foreach ($Programms as $programm): ?
tr
td? echo $programm['Programm']['wann']; ?/td
td? echo $programm['Programm']['wo']; ?/td
td? echo $programm['Programm']['werwas']; ?/td
td? echo $programm['Programm']['whatelse']; ?/td
/tr
? endforeach; ?

The defined row tag is tr class='altRow'. Now I wanna have in the
output that the first row is starting just with tr and the second
should be starting with tr class='altRow'.

How can i do that?

greetz
Michael


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



pages controller

2006-12-01 Thread mschwer

Is it possible to get SQL results in the app/views/pages/home.thtml
page?

And if it's possible How to do it.

greetz
Michael


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



Re: pages controller

2006-12-01 Thread mschwer

By all means, that i have to build it on my own and therefore to
overwrite the standard pages_controller.

Sorry just started with cakePHP.


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