this is a example of my program."1" and "2" are values.
I am also finding the specs of .ini file, but not found.
PHP Code:
elements.gender.type = "radio"
elements.gender.options.class = "field"
elements.gender.options.label = "Gender"
elements.gender.options.validators.alnum.validator = "NotEmpty"
elements.gender.options.required = true
elements.gender.options.multiOptions.1 = "Male"
elements.gender.options.multiOptions.2 = "Female"
Quote:
Originally Posted by robboguy
Hello everybody,
I have a question about radio buttons in a .ini file. I have simple form elements like this in a .ini file, all working fine
Code:
users.elements.globalAdmin.type = "checkbox"
users.elements.globalAdmin.options.required = true
users.elements.globalAdmin.options.validators.strlen.validator = "StringLength"
users.elements.globalAdmin.options.validators.strlen.options.min = "0"
users.elements.globalAdmin.options.validators.strlen.options.max = "3"
However I can't figure out how to specify radio buttons, any example around? I know Zend Form is new and although the documentation is good, I'd like to know if there some examples or where to find the full specs for .ini files.
thanks,
--Roberto
|