sry, I didn't read that "model" part looking at bake() in the ModelTask you can see which are available:
if (is_object($name)) { if ($data == false) { $data = array(); $data['associations'] = $this->doAssociations($name); $data['validate'] = $this->doValidation($name); } $data['primaryKey'] = $name->primaryKey; $data['useTable'] = $name->table; $data['useDbConfig'] = $name->useDbConfig; $data['name'] = $name = $name->name; } else { $data['name'] = $name; } $defaults = array( 'associations' => array(), 'validate' => array(), 'primaryKey' => 'id', 'useTable' => null, 'useDbConfig' => 'default', 'displayField' => null ); seems no schema, though. maybe its in the associations 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php