you can always output data on the console for development:
debug($schema[$field]); die();
etc (or you can log them into a file like `file_put_contents($tmpfile,
print_r($schema, true));`)
this allows you to see what those variables contain.
be creative!
anyway, iterating over those fields you can do some pretty neat things:
https://github.com/dereuromark/setup/blob/master/Console/Templates/setup/views/index.ctp
(for
example)
to give you some ideas
Am Dienstag, 13. März 2012 10:02:59 UTC+1 schrieb gavrielh:
>
> I'm trying to iterate over model fields within a custom Bake template - I
> can't seem to figure out what variables might be available that would allow
> me to iterate over the fields within the model.
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others
with their CakePHP related questions.
To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/cake-php