how to turn off autocomplete in autogenerated form input element'开发者_StackOverflow中文版s? in zend form's?
Simply specify it as a property or as metadata on instantiation:
$foo = new Zend_Form_Element_Text('foo', array(
'autocomplete' => 'off',
));
// or...
$form->addElement('text', 'foo', array(
'autocomplete' => 'off',
));
// or...
$element->autocomplete = 'off';
精彩评论