Im working on zend form..My problem is..
I have designed sigin and sign up froms using zend forms.My sample snippet is..
$this->addElement('Text', 'email', array(
'label' => $email,
'required' => true,
'allowEmpty' => false,
'inputType' => 'email',
'placeholder' => '[email protected]',
));
<div id="email-element" class="form-element">
<input type="email" name="email" id="email" value="" autofocus="autofocus" placeholder="[email protected]"></div>
But I need to place a div with name email_icon with class name form_icon infront of input element to place an image..But Im unable to get snippets to place div in zend form elements.Could you please help me for few snippets..o tuts..or some guidance..
When displaying the email input element in your view script, as per Zend Framework 2, you can use below code snippet.
I hope this helps.