Dears delocalizer and DrLoboto,
tnx for your suggestions... i'm working in that way now but i hade
some difficulties...
Basically I have this portion of the $form array:
[Amenity] = Array
(
[0] = Array
(
Hi Fabio -
same way you would do for any array - look at the output from this:
foreach (data['Amenity'] as $key = $value){
echo key: .$key.br;
echo name: .$value[name].br;
}
On Aug 31, 8:01 pm, fabio 3bi...@gmail.com wrote:
Dears delocalizer and DrLoboto,
tnx for your suggestions... i'm
If you need textfield for every checkbox, do not output them as group
but do it individually.
On Aug 28, 4:01 pm, fabio 3bi...@gmail.com wrote:
Thanks again Dr.Loboto,
that's what i came up to as well, but it works only for the last
checkbox of the list (or the first if i used 'before'
Hi Fabio;
Dr Loboto is correct - you'll have to output the elements individually
rather than as a group. You can use the form helper to create the
individual checkboxes, but getting the text field to display inline
nicely may require some tinkering. Or just code the html yourself -
that's what I
echo $form-input('User.name', array('onfocus' = 'CheckCheckBox
(this.form)'));
On Aug 27, 9:18 pm, fabio 3bi...@gmail.com wrote:
Dear all,
i'm a CakePHP newbie and i'm looking for some help regarding a
particular use of checkboxes in a form.
Basically i've got a check-boxes-section in the
Dear Dr.Loboto, thank you very much for your suggestion... i'm
handling on it but i would first need to know how to set the
FormHelper options to show one text field beside each checkbox...
I was thinking about something like markup injections using
parameters between[string] or after[string]
Read manual.
http://book.cakephp.org/view/191/options-before-options-between-options-separator-a
echo $form-input(
'Amenity',
array(
'type' = 'select',
'multiple' = 'checkbox',
'after' = $form-input(
'User.name',
array('onfocus' =
Dear all,
i'm a CakePHP newbie and i'm looking for some help regarding a
particular use of checkboxes in a form.
Basically i've got a check-boxes-section in the form of a baked
edit.ctp, called with a basic
echo $form-input('Amenity', array( 'type' = 'select', 'multiple' =
'checkbox' ));
The