hi guys. i want to create readonly or disable input attribute. how can i set it? i try adding 'readonly'=>true in each form array but not working
$this->data['form']['fields']['general']['phone_code'] = $form->getFieldHtml(
array (
'type' => 'input',
'name' => 'phone_code',
'value' => $phone_code,
'readonly' => true
));