I’ve been creating an app preparing it already to be internationalized. But when I try to do this:
echo $this->Form->input('end_date', array('label' => __('End Date'), 'dateFormat' => 'DMY', 'minYear' => date('Y'), 'type' => 'text'));\
It echoes two “End Date”. I tried disabling label by setting it to null, but didn’t work either. 🙁
How can I avoid this to happen?
Thanks
Instead of NULL, try setting it to false:
You can also set ALL inputs of a form to default to
'label'=>falseby using:as an option of your form