form helper-> checkbox, issue with simpletest

2009-09-28 Thread Crazy

Hi,

When writing tests a project of ours, we used simpletest.
We ran into a problem that the formhelper adds a value to the
checkbox.
This causes that simpletest can not check if the checkbox is checked
or not.

Is there a reason for the 'value=' to be added?, because this value
does not change.

Is this an issue in the formhelper?, we could convert all the
checkboxes with the formhelper to html. But that's something we would
like to avoid.

Thanks
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to 
cake-php+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: checkbox issue

2008-12-05 Thread dr. Hannibal Lecter

Something like this should do it:

echo $form->input('Model.Field', array('type' => 'select', 'multiple'
=> 'checkbox', 'options' => $anArrayOfOptions));

Hope that helps!

On Dec 4, 7:40 pm, gayatri <[EMAIL PROTECTED]> wrote:
> i not able to get the value of multiple checkboxes can any help me in
> this issue.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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 options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



Re: checkbox issue

2008-12-05 Thread deepesh

Hi,
 Can you plz paste your code here !!

Best regards,

Deepesh gairola

On Dec 4, 11:40 pm, gayatri <[EMAIL PROTECTED]> wrote:
> i not able to get the value of multiple checkboxes can any help me in
> thisissue.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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 options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---



checkbox issue

2008-12-05 Thread gayatri

i not able to get the value of multiple checkboxes can any help me in
this issue.

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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 options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~--~~~~--~~--~--~---