Browser path is the url path to this root media directory
public browserPath ( $path ) : string | ||
$path | ||
return | string |
/** * Image url for a given category and image * * @param $input * @return string */ public function getImageUrl($input) { $localPath = isset($input['category']) ? $this->CategoryPaths->fromDot($input['category']) : ''; $browserPath = $this->CategoryPaths->browserPath($localPath); return $browserPath . $input['image']; }