It's not too hard after all ;)
$privacy = $this->getElement('privacy'); $privacy->addDecorator('Description', array('placement' => 'append','tag'=>'','class'=>'explain')); $privacy->setDescription('Bla bla bla');
whisher wrote:
Hi.
How can I add a htlm note to this code
// Privacy $this->addElement('checkbox', 'privacy', array( 'class' => 'check', 'required' => true, 'title' => $translator->translate('form_User_Register_Tooltip_Privacy'), 'label' => 'form_User_Register_Label_Privacy', 'filters' => array('StringTrim'), 'validators' => array( array('Digits',true), array('Between',false,array('0','1')) ) )); // Group user privacy $this->addDisplayGroup(array( 'privacy'), 'userprivacy'); $usercaptchaGroup = $this->getDisplayGroup('userprivacy'); $usercaptchaGroup->setAttrib('class','frm-group-flatlabel'); Now the output is
The requested output is a thing like The paragraph position isn't important ;)
Thanks in advance
View this message in context: Re: Zend Form add a html note
Sent from the Zend MVC mailing list archive at Nabble.com.
没有评论:
发表评论