I am having dificulties creating some form defaults with the FormHelper of CakePHP2.
I have some input fields which I want to be readonly, and some select boxes to be disabled.
I have the following code this far:
echo $this->Form->create(
'User',
array(
'novalidate' => true,
'inputDefaults' => array(
'div' => false,
'placeholder' => '...',
'readonly' => 'readonly'
)
)
);
This code is setting my select boxes to readonly. How can I target input and select boxes individually?