Advertisement
Guest User

Untitled

a guest
Jun 26th, 2019
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.52 KB | None | 0 0
  1. Fatal error: Uncaught Error: Undefined class constant 'CACHE_TAG' in
  2. C:xampphtdocstest-localappcodeTestingSimpleNewsModelNews.php:9
  3. Stack trace: #0 C:xampphtdocstest-localvendormagentoframeworkAppCacheTagStrategyIdentifier.php(25):TestingSimpleNewModeNews->getIdentities()
  4. #1 C:xampphtdocstest-localvendormagentoframeworkAppCacheTagResolver.php(43): MagentoFrameworkAppCacheTagStrategyIdentifier->getTags(Object(TestingSimpleNewsModelNews))
  5. #2 C:xampphtdocstest-localvendormagentomodule-page-cacheObserverFlushCacheByTags.php(64): MagentoFrameworkAppCacheTagResolver->getTags(Object(TestingSimpleNewsModelNews))
  6. #3 C:xampphtdocstest-localvendormagentoframeworkEventInvokerInvokerDefault.php(72): MagentoPageCacheObserverFlushCacheByTags->execute(Object(MagentoFrameworkEventObserver))
  7. #4 C:xampphtdocstest-localvendormagentoframeworkEventInvokerInvokerDefault.php(60): MagentoFrameworkEventInvokerInvokerDefault->_callObserverMethod(Object(Magento in C:xampphtdocstest-localappcodeTestingSimpleNewsModelNews.php on line 9
  8.  
  9. <?php
  10.  
  11. namespace TestingSimpleNewsModel;
  12.  
  13. class News extends MagentoFrameworkModelAbstractModel implements MagentoFrameworkDataObjectIdentityInterface
  14. {
  15. public function getIdentities()
  16. {
  17. return [self::CACHE_TAG . '_' . $this->getId()];
  18. }
  19.  
  20. public function getDefaultValues()
  21. {
  22. $values = [];
  23.  
  24. return $values;
  25. }
  26.  
  27. /**
  28. * Define resource model
  29. */
  30. protected function _construct()
  31. {
  32. $this->_init('TestingSimpleNewsModelResourceNews');
  33. }
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement