我有一些Zend_Form
$text = new Zend_Form_Element_Textarea('text');
$text->setLabel('Leave a reply')
->setAttrib('rows', 9)
->setAttrib('cols', 50)
->addValidator('NotEmpty')
->setRequired(true)
->setAttrib('class', 'comment_form');
Run Code Online (Sandbox Code Playgroud)
我想用这种形式设计样式,为标签标签添加一些样式,为textarea标签添加另一种样式.我怎样才能做到这一点?