Index.php

 avatar
unknown
plain_text
4 years ago
613 B
43
Indexable
<?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;

	}

}
Editor is loading...