Thursday, December 22, 2011

Can I automagically add an ID to the div generated by form->input

I need to add IDs to divs generated by form helper. In the past I've
done something like

$form->input(
'Model.field',
array(
'div' => array('id' => 'ModelFieldDiv', 'class' => 'input text
required')
)
);

Is there a way to make this the default behavior without hacking form
helper?

Levi

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: