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 are being rendered. |
| return | string |
The generated image tag |
Please login to continue.