-1: Returns a <img> tag without looking for relative files
$img = 'images/thing.jpg';
$name = 'Thing is Thang';
$attribs = '';
$img = JHtml::_('image', $img, $name, $attribs, false, -1);
echo $img;
exit;
Method should return
<img src="images/thing.jpg" alt="Thing is Thang" />
because the last parameter ($returnPath
) is -1
in code above
Method returns only a path
images/thing.jpg
which should be only the case if $returnPath = 1
(and file exists in a calculated relative path; otherwise empty path).
Labels |
Added:
?
|
Category | ⇒ | Code style com_tags |
Status | New | ⇒ | Discussion |
Status | Discussion | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2018-02-24 01:36:11 |
Closed_By | ⇒ | ReLater |
Confirmed. Can you please do a PR? Thanks.