Dear,
I'm having trouble making the change of error and its tag
class. Does anyone know how to do this change?
echo "<?php echo \$this->Form->create('{$modelClass}', array(
'inputDefaults' => array(
'div' => array('tag' => 'p'),
'error' => array(
'wrap' => 'span',
'class' => 'validate_error',
),
)
)
);?>\n";
return:
<p class="input text required error">
<label for="ContaReceberDsConta">Ds Conta</label>
<input name="data[ContaReceber][ds_conta]" maxlength="255"
type="text"
value="" id="ContaReceberDsConta" class="form-error"></p><div
class="error-message">notempty</div>
If you look will find that the error is out of the tag and the name
<p>
remains the same class generated by cake.
The correct return would be:
<p class="input text required error">
<label for="ContaReceberDsConta">Ds Conta</label>
<input name="data[ContaReceber][ds_conta]" maxlength="255"
type="text"
value="" id="ContaReceberDsConta" class="form-error">
<span class="validate_error">notempty</span>
</p>
Thank you!
--
Has recibido este mensaje porque estás suscrito al grupo "CakePHP-es" de Grupos
de Google.
Para publicar una entrada en este grupo, envía un correo electrónico a
[email protected].
Para anular tu suscripción a este grupo, envía un correo electrónico a
[email protected]
Para tener acceso a más opciones, visita el grupo en
http://groups.google.com/group/cakephp-es?hl=es.