Comment #4 on issue 205 by
deadduck...@gmail.com: Update to Bootstrap 3
http://code.google.com/p/php-form-builder-class/issues/detail?id=205
It doesn't look that hard to do, actually with very few simple fixes.
Here's a start:
SideBySide.php change line 33 to:
echo '<div class="form-group">', $this->renderLabel($element), '<div
class="col-sm-10">', $element->render(),
$this->renderDescriptions($element), '</div></div>';
Then line 44 to:
echo '<label class="col-sm-2 control-label" for="',
$element->getAttribute("id"), '">';
Then any of the elements that you want to add the "form-control" class to
(which will make them 100% width), you need to add:
"class" => "form-control"
to the protected $_attributes array near the top of the file (make sure to
add a comma before it if the array already has something in it).
For example, edit these files:
Date.php, DateTime.php, DateTimeLocal.php, Email.php, jQueryUIDate.php,
Month.php, Number.php, Password.php, Phone.php, Search.php, Select.php,
Textarea.php, Textbox.php, Time.php, Url.php, Week.php