Hi,
If you want display any filed custom error place for specific field,
you can use

http://book.cakephp.org/view/198/options-error
http://book.cakephp.org/ro/compare/724/isFieldError

echo $form->input('email',array('error'=>false));
at any place on the page use this to display error.
$form->isFieldError('email'){
                    echo $form->error('email');
  }
Thanks

On Apr 27, 2:10 pm, WebbedIT <[email protected]> wrote:
> Hi,
>
> I mean manually because Cake automatically validates data before
> saving it when you call Model::save and if validation fails it will
> not save it and sets the validation errors for the view.
>
> http://book.cakephp.org/view/75/Saving-Your-Data
>
> There is also no need to call your errors using $form->error('field')
> as $form->input('ModelName.fieldname'); will automatically display
> errors if they exist.
>
> What I am trying to get at is your doing a lot of unnecessary work
> and, in the process, more than likely doing something that is causing
> your issue.
>
> Rather then spend time telling you how to fix your unnecessary code it
> is much better to inform you that you should be using a much more
> streamlined set of code and then you are back to working with
> conventions which the community can support much easier.  It;s a win
> win for you and for those offering your support.
>
> Please try using the code I set out in my original reply and come back
> to me with the results.  If you are still not getting validation
> errors showing you could try adding echo debug($this->validationErrors); 
> somewhere in your view and include the information
>
> from that when posting your next reply
>
> HTH
>
> Paul.
>
> Check out the new CakePHP Questions sitehttp://cakeqs.organd 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 
> athttp://groups.google.com/group/cake-php?hl=en

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