By default, when there is an error message, a couple of things happen. In the input declaration, the class error is added to the div around the label and the input box, while a second div wrapper, of the "error-message" class is added with the contents of th error message.
Your best bet(and how I have it) is to use CSS to relocate the location of the error-message class div to wherever you happen to want it located, just be aware that it will be a *global* repositioning, as the error-message class is used for *all* FormHelper errors. Hope that made some kind of sense. In the name of Life, Liberty, and the pursuit of my sanity. Siebren Bakker(Aevum Decessus) On Thu, Jul 17, 2008 at 02:05, Sizofrenick <[EMAIL PROTECTED]> wrote: > > Hi there all, > > I am new with CakePHP and have a question. I find FormHelper very > useful, but I have a customization problem. When I use FormHelper and > $validate array in my Model, I get error messages below my textareas, > input text fields etc. > > My question is, is there a way to use FormHelper and place the error > message everywhere I wanted in my view. Also I want to prevent to > display auto poppulated ( messages appear below the form elements ) > error messages. > > Thanx in adv. > > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
