Re: Composit forms for composit models

2006-09-06 Thread Sohei Okamoto
Unfortunately, I don't think there is an easy solution for that.However, If you have some sort of custom validation to assert the error, for example in the controller,if( empty($this->data['Person']['Address']['address1']) ) $this->Person->validationErrors['Address']['address1'] = 1;then you can ma

Re: Composit forms for composit models

2006-09-06 Thread Stuart
Thanks, Sohei. Bet you can guess what my next question is. Is there a similar hack to get $html->tagErrorMessage('Person/Address/address1') to work? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group

Re: Composit forms for composit models

2006-09-05 Thread Sohei Okamoto
>From what I understand, HTML helper explodes the input name by slash, and takes the first one as model and second one as field name. The rest of the name is ignored. Then make the onput tag by where first %s is model name, second is field name, and the last one is the rest of attributes. I've se

Re: Composit forms for composit models

2006-09-05 Thread Sonic Baker
Hi Stuart, I had a similar problem. You can get the required behavior by making your own HTML helper. HTH, Sonic --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email t

Re: Composit forms for composit models

2006-09-01 Thread [EMAIL PROTECTED]
afaik this isnt possible with the html helper. i also needed such a form , gave up on the html helper and just used the html code on itself. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post

Composit forms for composit models

2006-09-01 Thread Stuart
I have a single form for adding a composit model that is laid out somthing like Vendor::Person::Address, Vendor::Outlet::Address and I need the html helper to genreate form inputs named: name="data[Person][Address][address1]" and name="data[Person][Address][address2]", etc. I've tried : input('Pe