Matthimatiker / MolComponents

Library with use-at-will architecture that extends the functionality of Zend Framework 1. Main features: Improved bootstrapping with lazy loading of resources, declaration of request parameters as argument in controller actions, advanced form creation and validation, mail templates, lightweight controller testing.
Other
2 stars 0 forks source link

Form factory: Create AutocompleteOff plugin #31

Closed Matthimatiker closed 12 years ago

Matthimatiker commented 12 years ago

Create a form factory plugin that sets the autocomplete attribute of text fields to off.

Matthimatiker commented 12 years ago

autocomplete=off can also be added to the form element.

Matthimatiker commented 12 years ago

Added Mol_Form_Factory_Plugin_AutoCompleteOff that adds an autocomplete=off attribute to forms.

The following line activates the plugin via configuration:

resources.form.plugins.autoComplete = "Mol_Form_Factory_Plugin_AutoCompleteOff"