Hi
I'm not sure if someone has this problem, but I need your help and maybe a
push in the right direction.
I have a record, with a list of assoziated records, like you have, when you
bind a model with hasMany, an example I attached to this post.
With the FormHelper I create the required inputs for the assoziated records
like this:
echo
"\n".$this->Form->input(ProfilesCountry.1.ProfilesCountry.country_int_id',
array());
echo "\n".$this->Form->hidden(ProfilesCountry.1.ProfilesCountry.id');
All data is placed and posted fine.
BUT the Problem is, when I have a validation-error the FormHelper looks in
the Model for " ProfilesCountry.1.country_int_id " so the error is not
displayed.
Is there a way to help the FormHelper to find the right error, so that it
will be shown? Or is a way to add a errormessage manually to the input, so
that the FormHelper can work?
Thanks
Wilderland
--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
---
You received this message because you are subscribed to the Google Groups
"CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.
Array
(
[Profile] => Array
(
[id] => 10
[name] => Schmidt100
[firstname] => Maria
[gender] => F
[birthday] => 1993-08-08
[created] => 2013-08-08 17:16:05
[modified] => 2013-08-08 17:16:05
)
[ProfilesCountry] => Array
(
[0] => Array
(
[ProfilesCountry] => Array
(
[id] => 1
[profile_id] => 10
[country_int_id] => 241
[sort_order] => 0
[created] => 2013-08-13 20:25:34
[modified] => 2013-08-13 20:25:35
)
[CountryInt] => Array
(
[id] => 241
[active] => 1
[sort_order] => 0
[name] => United States
)
)
[1] => Array
(
[ProfilesCountry] => Array
(
[id] => 2
[profile_id] => 10
[country_int_id] => 48
[sort_order] => 0
[created] => 2013-08-13 20:26:16
[modified] => 2013-08-13 20:26:17
)
[CountryInt] => Array
(
[id] => 48
[active] => 1
[sort_order] => 0
[name] => Germany
)
)
)
)