فهرست منبع

Implemento antiCacheURL en los css y js

Gabriel Badano 4 سال پیش
والد
کامیت
a42432e1d9
1فایلهای تغییر یافته به همراه5 افزوده شده و 5 حذف شده
  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");
 } ?>