In this article... http://www.dereuromark.de/2010/06/22/cake-bake-custom-templates/
...Mark shows us how to improve the bake templates, so that for example fields of different types get displayed differently. (Dates are formatted, Booleans get a special indicator, textfields get breaks inserted, etc.) This is done by inspecting the schema, which the bake script makes available in the $schema variable, so you can switch on $schema[$field]['type'] to decide what to do. As I'm trying to implement Mark's suggestions, though, I'm realizing he cleverly avoids mentioning the related records at all, which can appear at the bottom of a view. How can I do the same thing there? I can't see the schema of the related records available anywhere... Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to [email protected] 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
