From 1e80ae85fe1e90de26319938c0edaece20f02164 Mon Sep 17 00:00:00 2001 From: Reed Dadoune Date: Fri, 30 Aug 2013 09:49:19 -0700 Subject: [PATCH] Increased control on input div attributes --- View/Helper/BootstrapFormHelper.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/View/Helper/BootstrapFormHelper.php b/View/Helper/BootstrapFormHelper.php index 89f9814..9f7210d 100644 --- a/View/Helper/BootstrapFormHelper.php +++ b/View/Helper/BootstrapFormHelper.php @@ -247,7 +247,7 @@ public function input($fieldName, $options = array()) { $input = $hidden . ((false === $div) ? $input : $this->Html->div($divControls, $input)); $out = $before . $label . $between . $input; - return (false === $div) ? $out : $this->Html->div($div, $out); + return (false === $div) ? $out : $this->Html->tag('div', $out, $div); } protected function _getType($fieldName, $options) {