src — Get a URL for a given local file.

Asset-related functions

Summary

src($file, $dir = null, $ext = null, $version = null)

Get a URL for a given local file.

Parameters:
  • $file (string) – The filename.
  • $dir (string|null) – The file’s directory.
  • $ext (string) – The file’s extension.
  • $version (mixed) – Optional version number.
Returns:

string

Usage

Examples

See Also