helpers\BaseHtml img()

img() public static method Generates an image tag. public static string img ( $src, $options = [] )$src array|string The image URL. This parameter will be processed by yii\helpers\Url::to(). $options array The tag options in terms of name-value pairs. These will be rendered as the attributes of the resulting tag. The values will be HTML-encoded using encode(). If a value is null, the corresponding attribute will not be rendered. See renderTagAttributes() for details on how attributes

helpers\BaseHtml hiddenInput()

hiddenInput() public static method Generates a hidden input field. public static string hiddenInput ( $name, $value = null, $options = [] )$name string The name attribute. $value string The value attribute. If it is null, the value attribute will not be generated. $options array The tag options in terms of name-value pairs. These will be rendered as the attributes of the resulting tag. The values will be HTML-encoded using encode(). If a value is null, the corresponding attribute wil

helpers\BaseHtml getInputName()

getInputName() public static method Generates an appropriate input name for the specified attribute name or expression. This method generates a name that can be used as the input name to collect user input for the specified attribute. The name is generated according to the form name of the model and the given attribute name. For example, if the form name of the Post model is Post, then the input name generated for the content attribute would be Post[content]. See getAttributeName() for expl

helpers\BaseHtml getInputId()

getInputId() public static method Generates an appropriate input ID for the specified attribute name or expression. This method converts the result getInputName() into a valid input ID. For example, if getInputName() returns Post[content], this method will return post-content. public static string getInputId ( $model, $attribute )$model yii\base\Model The model object $attribute string The attribute name or expression. See getAttributeName() for explanation of attribute expression. re

helpers\BaseHtml getAttributeValue()

getAttributeValue() public static method Returns the value of the specified attribute name or expression. For an attribute expression like [0]dates[0], this method will return the value of $model->dates[0]. See getAttributeName() for more details about attribute expression. If an attribute value is an instance of yii\db\ActiveRecordInterface or an array of such instances, the primary value(s) of the AR instance(s) will be returned instead. public static string|array getAttributeValue (

helpers\BaseHtml getAttributeName()

getAttributeName() public static method Returns the real attribute name from the given attribute expression. An attribute expression is an attribute name prefixed and/or suffixed with array indexes. It is mainly used in tabular data input and/or input of array type. Below are some examples: [0]content is used in tabular data input to represent the "content" attribute for the first model in tabular input; dates[0] represents the first array element of the "dates" attribute; [0]dates[0] re

helpers\BaseHtml fileInput()

fileInput() public static method Generates a file input field. To use a file input field, you should set the enclosing form's "enctype" attribute to be "multipart/form-data". After the form is submitted, the uploaded file information can be obtained via $_FILES[$name] (see PHP documentation). public static string fileInput ( $name, $value = null, $options = [] )$name string The name attribute. $value string The value attribute. If it is null, the value attribute will not be generated.

helpers\BaseHtml escapeJsRegularExpression()

escapeJsRegularExpression() public static method (available since version 2.0.6) Escapes regular expression to use in JavaScript public static string escapeJsRegularExpression ( $regexp )$regexp string The regular expression to be escaped. return string The escaped result.

helpers\BaseHtml errorSummary()

errorSummary() public static method Generates a summary of the validation errors. If there is no validation error, an empty error summary markup will still be generated, but it will be hidden. public static string errorSummary ( $models, $options = [] )$models yii\base\Model|yii\base\Model[] The model(s) whose validation errors are to be displayed. $options array The tag options in terms of name-value pairs. The following options are specially handled: header: string, the header HTML

helpers\BaseHtml error()

error() public static method Generates a tag that contains the first validation error of the specified model attribute. Note that even if there is no validation error, this method will still return an empty error tag. public static string error ( $model, $attribute, $options = [] )$model yii\base\Model The model object $attribute string The attribute name or expression. See getAttributeName() for the format about attribute expression. $options array The tag options in terms of name-v