proper syntax?

Permalink
When using the following, what is the proper syntax to add attributes. I want to change the size of the textarea in the form, and I do not know what the proper syntax is. Can anyone point me to an example of this, or a section of the documentation I have missed?

$form->textarea($name, $value, $tagAttributes)

 
ronyDdeveloper replied on at Permalink Best Answer Reply
ronyDdeveloper
$form->textarea($name, $value, $tagAttributes, array('style'=>'width: 200px; height: 150px;'));


Rony
wclark07 replied on at Permalink Reply
Thank you, thank you.
INTcommunications replied on at Permalink Reply
INTcommunications
The marked answer doesn't look right the third $tagAttributes shouldn't be there. The 3rd slot there can be where your default value is placed - but the array('style'=.'width: 200px; height:150px;') replaces the $tagAttributes.

This really should be documented somewhere with lots of samples - there is one example in the docs and it adds another value as a list added classes ( string ) not sure how to add those? Reading through the foeums seems to be a lot of confusion with selects and checkboxes. This would explain why a lot of people aren't using the form / helper adding textboxes and checkboxes etc. is a no-brainer with good old html.

Jim