Explorar o código

Implemento antiCacheURL en los css y js

Gabriel Badano %!s(int64=4) %!d(string=hai) anos
pai
achega
a42432e1d9
Modificáronse 1 ficheiros con 5 adicións e 5 borrados
  1. 5 5
      protected/views/_includes/head.php

+ 5 - 5
protected/views/_includes/head.php

@@ -10,8 +10,8 @@
 
 <?php $this->renderHeadIncludes();?>
 
-<link href="<?php echo $this->webApp()->getUrlAssets();?>css/metisMenu.min.css" rel="stylesheet">
-<link href="<?php echo $this->webApp()->getUrlAssets();?>css/startmin.css" rel="stylesheet">
+<link href="<?php echo $this->getAntiCacheURL($this->webApp()->getUrlAssets() . 'css/metisMenu.min.css');?>" rel="stylesheet">
+<link href="<?php echo $this->getAntiCacheURL($this->webApp()->getUrlAssets() . 'css/startmin.css');?>" rel="stylesheet">
 <link href="<?php echo $this->webApp()->getUrlAssets();?>css/font-awesome.min.css" rel="stylesheet" type="text/css">
 
 <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
@@ -21,9 +21,9 @@
 <script src="https://cdnjs.cloudflare.com/ajax/libs/respond.js/1.4.2/respond.min.js"></script>
 <![endif]-->
 
-<script src="<?php echo $this->webApp()->getUrlAssets();?>js/metisMenu.min.js"></script>
-<script src="<?php echo $this->webApp()->getUrlAssets();?>js/startmin.js"></script>
+<script src="<?php echo $this->getAntiCacheURL($this->webApp()->getUrlAssets() . 'js/metisMenu.min.js');?>"></script>
+<script src="<?php echo $this->getAntiCacheURL($this->webApp()->getUrlAssets() . 'js/startmin.js');?>"></script>
 
-<?php if (\oxusmedia\webAppMulti\webApp::app()->isLoggedIn()) {
+<?php if ($this->webApp()->isLoggedIn()) {
     $this->renderBusinessInclude("head");
 } ?>