@@ -37,6 +37,7 @@ public static function textarea($name, $value = false, $label = false, $id = fal
37
37
'name ' => $ name ,
38
38
'label ' => $ form ->helper ->label ($ label , $ name ),
39
39
'id ' => $ form ->helper ->id ($ id , $ name ),
40
+ 'class ' => (is_array ($ attributes ) && key_exists ('class ' , $ attributes )),
40
41
'attributes ' => $ form ->helper ->attributes ($ attributes ),
41
42
'value ' => $ form ->helper ->value ($ value ),
42
43
'rows ' => $ form ->helper ->rows ($ rows ),
@@ -51,6 +52,7 @@ public static function select($name, $options, $value = false, $label = false, $
51
52
'name ' => $ name ,
52
53
'label ' => $ form ->helper ->label ($ label , $ name ),
53
54
'id ' => $ form ->helper ->id ($ id , $ name ),
55
+ 'class ' => (is_array ($ attributes ) && key_exists ('class ' , $ attributes )),
54
56
'attributes ' => $ form ->helper ->attributes ($ attributes ),
55
57
'attributesArray ' => (!$ attributes ) ? [] : $ attributes ,
56
58
'value ' => $ form ->helper ->value ($ value ),
@@ -66,6 +68,7 @@ public static function checkbox($name, $value = false, $label = false, $id = fal
66
68
'name ' => $ name ,
67
69
'label ' => $ form ->helper ->label ($ label , $ name ),
68
70
'id ' => $ form ->helper ->id ($ id , $ name ),
71
+ 'class ' => (is_array ($ attributes ) && key_exists ('class ' , $ attributes )),
69
72
'attributes ' => $ form ->helper ->attributes ($ attributes ),
70
73
'value ' => $ form ->helper ->value ($ value ),
71
74
])->render ();
@@ -79,6 +82,7 @@ public static function radio($name, $value = false, $checked = false, $label = f
79
82
'name ' => $ name ,
80
83
'label ' => $ form ->helper ->label ($ label , $ name ),
81
84
'id ' => $ form ->helper ->id ($ id , $ name ),
85
+ 'class ' => (is_array ($ attributes ) && key_exists ('class ' , $ attributes )),
82
86
'attributes ' => $ form ->helper ->attributes ($ attributes ),
83
87
'value ' => $ form ->helper ->value ($ value ),
84
88
'checked ' => (bool )$ checked
0 commit comments