Tuesday, January 5, 2010

RE: Error Placement / Styles

Thanks,

This works perfect.
<li <?php if($form->error('User.password')){?> class='error''<?php }?> >
</li>


After re-reading Johns email I think i gave the impression that the hint was
the error message. That is where I may have causeed some confusion. The hint
is always visible, its not an error message. Imagine a field called
"User.specialty" and the hint was "Please describe briefly your background
in this area". It only provides a hint to the user as to what info to enter.
Then if they skip that field I then display my error "Please enter your
Specialty"....or what not

Thanks guys,

Dave

-----Original Message-----
From: cake-php@googlegroups.com [mailto:cake-php@googlegroups.com] On Behalf
Of Amit Rawat
Sent: January-05-10 4:58 AM
To: cake-php@googlegroups.com
Subject: Re: Error Placement / Styles

Try this,

<li <?php if($form->error('User.password')){?> class='error''<?php }?> >
</li>

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+unsubscribe@googlegroups.com For more options, visit this group
cake-php+at http://groups.google.com/group/cake-php?hl=en


No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 9.0.725 / Virus Database: 270.14.124/2599 - Release Date: 01/04/10
04:54:00

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate