There is also an optional sub_directory argument for extra flexibility. For example, if Kohana::config('core.site_domain') is set to "/", but the skin/ directory lives within a sub-directory such as app/, then you can provide this:
The end result is a URL with a query string parameter of _v and the file's timestamp. The logic assumes that the URL provided does not already have query string parameters.
Usage example:
or
There is also an optional
sub_directory
argument for extra flexibility. For example, ifKohana::config('core.site_domain')
is set to "/", but theskin/
directory lives within a sub-directory such asapp/
, then you can provide this:or
The end result is a URL with a query string parameter of
_v
and the file's timestamp. The logic assumes that the URL provided does not already have query string parameters.