fixed bug in form class that prevented name attribute from being set properly on input elements.
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user