I can’t figure out how to edit the label output by cakephp 2.0 in a form.
I have a simple drop down list with 3 items and all i want to do is change the text thats outputed (which of course prints the fieldname) how on earth do i do it. Ive looked a the 1.3 and 2.0 docs and i couldnt figure it out;
echo $this->Form->input('accounttype', array('options'=>array('customer' => 'Customer', 'retailer' => 'Retailer','manufacturer'=>'Manufacturer')));
Use the label property to achieve this:
See also:
http://book.cakephp.org/2.0/en/core-libraries/helpers/form.html