From dea61f2e448ae47312d079cc0650322a697feaf9 Mon Sep 17 00:00:00 2001 From: wesleyh Date: Mon, 22 Apr 2013 11:16:47 +0300 Subject: [PATCH] Updated to use ucwords instead of ucfirst This ensures each word is capitalized instead of just the first. --- FormBuilder.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/FormBuilder.php b/FormBuilder.php index fe7fef9..d0cf552 100644 --- a/FormBuilder.php +++ b/FormBuilder.php @@ -184,7 +184,7 @@ class FormBuilder { if (is_null($value)) { - $value = ucfirst(str_replace('_', ' ', $name)); + $value = ucwords(str_replace('_', ' ', $name)); } return '';