Re: checkbox 1.2?

2007-07-01 Thread Geoff Ford
The reason for the hidden field is so that you always get something on form submission. Without the hidden field, if a user does not select the checkbox you will not get anything within the data array at all. With the hidden form field you will get it there. Geoff -- http://lemoncake.wordpress.c

Re: checkbox 1.2?

2007-07-01 Thread Mech7
Umm no i did not read cause it was posted just before i was writing my message :) but why does it create the hidden field? On Jul 1, 8:23 pm, Walker Hamilton <[EMAIL PROTECTED]> wrote: > everything for form will be an option on input from now on (for the > most part.) > > why would it come back..

Re: checkbox 1.2?

2007-07-01 Thread Walker Hamilton
everything for form will be an option on input from now on (for the most part.) why would it come back most of those options are just wrappers. do you know how to read php code? do you know how to read the english language? Did you not read what I wrote regarding the API? --~--~-~

Re: checkbox 1.2?

2007-07-01 Thread Mech7
Ok adding it as option works.. so i suppose checkbox is not comming back in 1.2 as the htmlhelpers? But it still creates a hidden form also? Is there any reason for this and is there a way to turn it off.. input('publish', array('type' => 'checkbox', 'value' => 'yes')); ?> makes: Publish

Re: checkbox 1.2?

2007-07-01 Thread Walker Hamilton
Mech7: use form->input('published', array('type'=>'checkbox')); As for the hidden hidden input, as of the currently live API docs here: api.cakephp.org/1.2, there is no way to turn off the hidden field. --~--~-~--~~~---~--~~ You received this message because you

Re: checkbox 1.2?

2007-07-01 Thread Mech7
Umm look where? i have looked in the API and code but it is not there.. http://api.cakephp.org/1.2/class_form_helper.html On Jul 1, 5:27 pm, gwoo <[EMAIL PROTECTED]> wrote: > did you look? --~--~-~--~~~---~--~~ You received this message because you are subscribe

Re: checkbox 1.2?

2007-07-01 Thread gwoo
did you look? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more

checkbox 1.2?

2007-06-30 Thread Mech7
Is there going to be a form->checkbox in 1.2, since at the moment i can only find it in the html helper, also... when i create a checkbox: checkbox('Article/published', null, array('value' => 'yes')) ?> It automatically creates a hidden form is there anyway to turn this off? Publish --~--~