Welcome, Guest. Register Now!
   
Mark Forums Read Mark Forums Read Mark Forums Read


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-07-2008, 02:44 AM
Junior Member
 
Join Date: May 2008
Location: Sydney, Australia
Posts: 1
Send a message via ICQ to robboguy Send a message via Yahoo to robboguy Send a message via Skype™ to robboguy
Exclamation Radio buttons in .ini file

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 05-17-2008, 04:15 AM
Junior Member
 
Join Date: May 2008
Posts: 5
Default

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 View Post
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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 12:37 AM.