Index.php 677 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /**
  3. * Copyright © 2017 Ihor Vansach (ihor@magefan.com). All rights reserved.
  4. * See LICENSE.txt for license details (http://opensource.org/licenses/osl-3.0.php).
  5. *
  6. * Glory to Ukraine! Glory to the heroes!
  7. */
  8. namespace Magefan\Blog\Controller\Index;
  9. /**
  10. * Blog home page view
  11. */
  12. class Index extends \Magefan\Blog\App\Action\Action
  13. {
  14. /**
  15. * View blog homepage action
  16. *
  17. * @return \Magento\Framework\Controller\ResultInterface
  18. */
  19. public function execute()
  20. {
  21. if (!$this->moduleEnabled()) {
  22. return $this->_forwardNoroute();
  23. }
  24. $this->_view->loadLayout();
  25. $this->_view->renderLayout();
  26. }
  27. }