GetAdditionalFileURL
result_type CUtil::GetAdditionalFileURL( file, bSkipCheck = false );
The method returns file URL with the file version mark for automatic update on clients side. The version mark is generated based on the date when file was modified and the file size. Static method.
Parameters
Parameter | Description | Available from version |
---|---|---|
file | File path | |
SkipCheck | When specified true, does not check availability of the file and does not generate a version mark. In this case the result is $file. False by default. | 9.5.3 |
Example
<link href="<?=CUtil::GetAdditionalFileURL('/bitrix/templates/new/some.css');?>" type="text/css" rel="stylesheet" / >
© «Bitrix24», 2001-2024