Index.php

mail@pastecode.io avatar
unknown
plain_text
3 years ago
613 B
5
Indexable
Never
<?php 

namespace Icube\Training\Controller\Index;

use \Magento\Framework\App\Action\Action;
use \Magento\Framework\App\Action\Context;

class Index extends Action
{
	protected $resultPageFactory;
	
	public function __construct(
		Context $context,
        \Magento\Framework\View\Result\PageFactory $resultPageFactory
	){
		$this->resultPageFactory = $resultPageFactory;
		parent::__construct($context);

	}
	public function execute()
	{
		// echo 'tes';
		// die('Icube training controller!');
		$resultPage = $this->resultPageFactory->create();
        return $resultPage;

	}

}