|
@@ -143,6 +143,8 @@ class Form {
|
|
|
*/
|
|
|
public static function input($type, $name, $value = null, $attributes = array())
|
|
|
{
|
|
|
+ $name = (isset($attributes['name'])) ? $attributes['name'] : $name;
|
|
|
+
|
|
|
$id = static::id($name, $attributes);
|
|
|
|
|
|
return '<input'.HTML::attributes(array_merge($attributes, compact('type', 'name', 'value', 'id'))).'>'.PHP_EOL;
|