JHtml::image
Write a <img></img> element
Signature
public function image(string
$file,
[string
$alt = null,
[mixed
$attribs = null,
[boolean
$relative = false,
[mixed
$path_rel = false]]]] )
Parameters
-
$file
- The relative or absolute URL to use for the src attribute.
-
$alt
- The alt text.
-
$attribs
- String or associative array of attribute(s) to use.
-
$relative
- Path to file is relative to /media folder (and searches in template).
-
$path_rel
- Return html tag without (-1) or with file computing(false). Return computed path only (true).
Returns
- string