<label <?php if ($coach->attributeHasError('firstName')) { echo "class='error'"; } ?> >Prénom <input type="text" name="firstName" value="<?php echo $coach->FirstName; ?> " /> </label> <?php if ($coach->attributeHasError('firstName')) { echo "<small class='error'>" . $coach->getAttributeError("firstName") . "</small>"; } ?> </div> <div class="small-6 columns"> <label <?php if ($coach->attributeHasError('lastName')) { echo "class='error'"; } ?> >Nom <input type="text" name="lastName" value="<?php echo $coach->LastName; ?> " />