if you bake your views/forms
this should be done automatically

IF you set up your model relations accordingly anyway
maybe somethings wrong here
you should post your code for details


On 15 Aug., 16:30, Petr Vytlačil <[email protected]> wrote:
> Hi I will try to describe my problem better:
>
> I have database tables addresses and user so i have two models User
> and Address.
> User haveone malingaddress (class Address) and billaddress (class
> Address) this is definate in model User.
> How is registration form where are inputs for information about user
> some: User.name, User.phone ...
> And inputs for Mailing and billing address: Mailingaddress.street,....
> Billingaddress.street....
>
> -- now i want before save this data to database valid inputs with
> validations rules from model Address, source:
>
> ....
> $this->Address->create($this->data['Maillingaddress']);
> if($this->Address->validate()$this->data['Maillingaddress']){
>     $this->Address->save($this->data['Maillingaddress']);}
>
> And now when data arent valid a want show errors in form, but Form
> helper get errors for inputs in form from model and data model name
> isnt some as name input form:
> Address.street != Mallingaddress.street
>
> Is any way how a cane prepare this errors and send to helper?
>
> Have you understand?
>
> On 15 srp, 10:10, "[email protected]" <[email protected]> wrote:
>
>
>
> > what's meant of redirect this errors for concrete input or group
> > inputs ?
> > really I want to help you
> > Sorry , I can't understand what you want

Check out the new CakePHP Questions site http://cakeqs.org and help others with 
their CakePHP related questions.

You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
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

Reply via email to