FILE Methods

version()

This will add the project's version number to a filename. The version number can be used to force the browser to reload a cached file. This is especially useful with files that might be changed while the filename remains the same. Basically, this can happen to any frontend file, most likely CSS files that get updated. In order to force a file relaod increase the project number in the backend's project setup section.

string version( string file )

Return

Returns the file's name and a version-number parameter

Parameter
Description
fileA filename with or without it's directory

Add current version-number

$FILE->version('test.txt')
RETURN: 'test.txt?v=1000'