mirror of
https://git.imnavajas.es/jjimenez/safekat.git
synced 2025-07-25 22:52:08 +00:00
Añadido helper de gestion de assets caducados e implementado en CSS de PDFs
This commit is contained in:
10
ci4/app/Helpers/assets_helper.php
Normal file
10
ci4/app/Helpers/assets_helper.php
Normal file
@ -0,0 +1,10 @@
|
||||
<?php
|
||||
|
||||
if (!function_exists('versioned_asset')) {
|
||||
function versioned_asset(string $path): string
|
||||
{
|
||||
$fullPath = FCPATH . $path;
|
||||
$version = file_exists($fullPath) ? filemtime($fullPath) : time();
|
||||
return site_url($path) . '?v=' . $version;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user