Get the image file name with absolute web path
Parameters | |||
---|---|---|---|
string
|
$file |
An image file name only (no need directory path) |
# |
bool
|
$version = null |
Whether asset version appended to the file name or not |
# |
Returns | |
---|---|
string
|
The absolute image URL if the file found or empty string if it is not found |