Added support for <label> element
This commit is contained in:
parent
af24e8db45
commit
efb040c507
|
@ -71,6 +71,19 @@ public static function raw_token()
|
||||||
return Session::get('csrf_token');
|
return Session::get('csrf_token');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a HTML label element.
|
||||||
|
*
|
||||||
|
* @param string $name
|
||||||
|
* @param string $value
|
||||||
|
* @param array $attributes
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public static function label($name, $value, $attributes = array())
|
||||||
|
{
|
||||||
|
return '<label for="'.$name.'"'.HTML::attributes($attributes).'>'.HTML::entities($value).'</label>'.PHP_EOL;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Create a HTML text input element.
|
* Create a HTML text input element.
|
||||||
*
|
*
|
||||||
|
|
Loading…
Reference in New Issue