Got it:

if ($schema[$field]['type'] == 'datetime'):

Jeremy Burns
Class Outfit

jeremybu...@classoutfit.com
http://www.classoutfit.com

On 6 Oct 2010, at 16:51, Jeremy Burns wrote:

> I am creating my own templates for baking views (I spend the time
> getting that right then bake all my views - it's quicker than changing
> the results of hundreds of views after baking or creating my own).
> 
> I'm changing the following file:
> /app/vendors/shells/templates/mytemplatename/views/index.ctp
> 
> This has an array called $fields, which is just an array of the name
> of each field to be written out in the view. I'd like to handle some
> fields differently if they are datetime fields. Does anyone know where
> I can get that information from whilst parsing index.ctp?
> 
> 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 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

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 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
  • Bake templates Jeremy Burns
    • Re: Bake templates Jeremy Burns | Class Outfit

Reply via email to