Closed kenjis closed 11 years ago
Can you post your form.php file content to check your configuration? Which version of fuelphp are you using?
@billmn
I use fuelphp 1.2. I did not change form.php.
return array(
'prep_value' => true,
'auto_id' => true,
'auto_id_prefix' => 'form_',
'form_method' => 'post',
'form_template' => "\n\t\t{open}\n\t\t<table>\n{fields}\n\t\t</table>\n\t\t{close}\n",
'fieldset_template' => "\n\t\t<tr><td colspan=\"2\">{open}<table>\n{fields}</table></td></tr>\n\t\t{close}\n",
'field_template' => "\t\t<tr>\n\t\t\t<td class=\"{error_class}\">{label}{required}</td>\n\t\t\t<td class=\"{error_class}\">{field} <span>{description}</span> {error_msg}</td>\n\t\t</tr>\n",
'multi_field_template' => "\t\t<tr>\n\t\t\t<td class=\"{error_class}\">{group_label}{required}</td>\n\t\t\t<td class=\"{error_class}\">{fields}\n\t\t\t\t{field} {label}<br />\n{fields}<span>{description}</span>\t\t\t{error_msg}\n\t\t\t</td>\n\t\t</tr>\n",
'error_template' => '<span>{error_msg}</span>',
'required_mark' => '*',
'inline_errors' => false,
'error_class' => 'validation_error',
);
Ok ... I've solved the issue and created a test
When my previous pull request (https://github.com/fuel/core/pull/1009) was closed I can create a new pull request that solve this problem
The PR that fixes this was merged.
How to reproduce:
Generated HTML:
"id" is
form_gender_0
, but "for" isform_form_gender_0
.