bootstrap\BaseHtml staticControl()

staticControl() public static method

Renders Bootstrap static form control.

By default value will be HTML-encoded using encode(), you may control this behavior via 'encode' option.

See also http://getbootstrap.com/css/#forms-controls-static.

public static string staticControl ( $value, $options = [] )
$value string

Static control value.

$options array

The tag options in terms of name-value pairs. These will be rendered as the attributes of the resulting tag. There are also a special options:

  • encode: boolean, whether value should be HTML-encoded or not.
return string

Generated HTML

doc_Yii
2016-10-30 16:53:06
Comments
Leave a Comment

Please login to continue.