Do you mean something like this? 
http://milesj.me/blog/read/10/Displaying-Form-Errors-As-A-List-In-CakePHP

On Aug 15, 8:35 am, euromark <dereurom...@googlemail.com> wrote:
> 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 <petr.vytla...@gmail.com> 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, "rez...@gmail.com" <rez...@gmail.com> 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 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

Reply via email to