There are pieces of form creation knowledge in many different places. I'm starting this discussion as a central place for collecting what is needed for a complete Wiki entry.
To begin with, here are some places that I regard as sources for the Wiki entry:
http://api.akelos.org/ActionView/Helpers/FormHelper.html
http://forum.akelos.org/discussion/257/
http://forum.akelos.org/discussion/145/how-to-fill-a-select-box-from-an-object/#Item_2
In the api.akelos.org reference above, there are references to "$options = array()". Can someone tell me where these options are documented?
http://forum.akelos.org/discussion/145/
noooo! Don't do that! Ugly.
Don't go using loops when there are such nice functions to make a selection list. The FormOptionsHelpers:
http://api.akelos.org/ActionView/Helpers/FormOptionsHelper.html
select() for generating a list of a associated model. Like:
<?=$form_options_helper->select('book','author_id',$Author->collect($Author->find(),'name','id'));?>
and options_for_select() if you want to pass an array. And you can use the other functions if you want more control.
In the api.akelos.org reference above, there are references to "$options = array()". Can someone tell me where these options are documented?
I can't find them either.. most of them are used in examples in the API docs. But I had to dig into the source code the find all the options for the date and time selectors (link to API page).
Also: you will probably use the standard FormHelpers - like those generated while scaffolding - the most. But if you need to make fields you cannot pass a $object_name and $column_name values, you can make custom tags with:
http://api.akelos.org/ActionView/Helpers/FormTagHelper.html
1 to 2 of 2