Zend will ship its elements with tags of dd dt
But if you want to get only the element with out decorator being around it.
you can do:
$this->addElement('text', 'you_element', array(
'decorators' => array('viewHelper'),
But if you want to display errors along with the HTML format,
add errors in the decorators array
This should give you only the element that you can implement your own decorator around it
if you are on linux destro, by default you might have installed it on /usr/lib/php5/Zend or wherever you install it and look into the Version.php file, you can see the number of the version sitting and wondering
I have done that before using some other mechanism but they were not somehow natural ways to do it.
It can be done in a much easier way -NATURALLY- though
1. have the input box in your zend form as
$this->addElement('text', 'emails', array(
'label' => 'Emails',
'isArray' => TRUE,
'name' => 'emails'
Or however you are creating the inputbox – or anyother input
var new_email = document.createElement('input');
new_email.name = 'emails';
new_email.type = 'text';
3. yes, you are done!. When the form is submitted, the element with name emails would be passed along with the other form elements.
In your controller you would have an array of emails and the rest is …
You might get this error while working on zend form which has select element on it.
Just put the following in the controller and you should be fine
This is a behavior of zend adding a default validator of inarray.
You would find more detailed explanation on zend website.
Learn node js angular and mongodb with simple step by step tutorials here