I am trying to add CSS Class & inline style to a form element's/decorator. I tried
$this->addElement('text', 'honeypot', array(
...
'decorators' => array(
'ViewHelper',
'Label',
array('HtmlTag', array('tag' => 'p', 'class' => 'honeypot', 'style' => 'display: none'))
)
));
But the <p> didn't have the class & style attributes attached
