Footer.php 587 B

12345678910111213141516171819202122232425
  1. <?php
  2. namespace fecshop\app\apphtml5\widgets;
  3. use fecshop\interfaces\block\BlockCache;
  4. use Yii;
  5. class Footer implements BlockCache
  6. {
  7. public function getLastData()
  8. {
  9. return [
  10. ];
  11. }
  12. public function getCacheKey()
  13. {
  14. $lang = Yii::$service->store->currentLangCode;
  15. $appName = Yii::$service->helper->getAppName();
  16. $cacheKeyName = 'footer';
  17. $currentStore = Yii::$service->store->currentStore;
  18. return self::BLOCK_CACHE_PREFIX.'_'.$currentStore.'_'.$appName.'_'.$lang.'_'.$cacheKeyName;
  19. }
  20. }