Well, i want to render "Search form" such as: class Form_File_Search extends Zend_Form { public function init() { $this->setMethod(Zend_Form::METHOD_GET) ->setElementFilters(array('StringTrim')) ->setAttrib('id', 'fileSearchForm');
$file = $this->createElement('text', 'q', array('maxlength' => 31, 'size' => 30)) ->setLabel('Filename') ->setRequired(true); $submit = $this->createElement('submit', 'submit', array('id' => 'myId')) ->setIgnore(true) ->setValue('search'); $this->addElements(array($file, $submit)) ->setElementDecorators(array('ViewHelper', 'Errors', 'Label')) ->setDecorators(array('FormElements', array('HtmlTag', array('tag' => 'div')), 'Form')); $submit->setDecorators(array('ViewHelper')); } } And i dont want the rendered submit button has the "name" attribute atay wrote: > > maybe You'll write more details ? > > Václav Vaník wrote: >> >> Any idea? Thx. >> > > -- View this message in context: http://www.nabble.com/How-to-render-formSubmit-element-without-name-attrib--tp21411694p21412089.html Sent from the Zend Framework mailing list archive at Nabble.com.