validation work i use ($this->Form->input)
<?php echo $this->Form->input('Car', array('type'=>'textarea','label'=>false, 'cols'=>'23', 'rows'=>'4'));?>
and if i use ($this->Form->textarea) validation not work
<?php echo $this->Form->textarea('Car', array('label'=>false, 'cols'=>'23', 'rows'=>'4'));?>
but output is same both line of code
could anyone tell me why it's happening ...
Validation is still working. What is not working is the display of the error.
FormHelper::input
does a lot of work, including output of validation errors.FormHelper::textarea
only outputs a textarea, nothing more. You have to output the error yourself using echo $this->Form->error('Car')
.