Updated to use ucwords instead of ucfirst
This ensures each word is capitalized instead of just the first.
This commit is contained in:
1 parent
0f63e047d9
commit
dea61f2e44
1 file changed
+1
-1
+1
-1
@@ -184,7 +184,7 @@ class FormBuilder {
|
||||
|
||||
if (is_null($value))
|
||||
{
|
||||
$value = ucfirst(str_replace('_', ' ', $name));
|
||||
$value = ucwords(str_replace('_', ' ', $name));
|
||||
}
|
||||
|
||||
return '<label for="'.$name.'"'.$options.'>'.e($value).'</label>';
|
||||
|
||||
Reference in new issue
Block a user