Updated to use ucwords instead of ucfirst

This ensures each word is capitalized instead of just the first.
This commit is contained in:
wesleyh committed 2013-04-22 11:16:47 +03:00
1 parent 0f63e047d9
commit dea61f2e44
1 file changed
+1 -1
+1 -1
View File
@@ -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>';