Advertisement
johncarlson21

Index.php

Jan 16th, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.11 KB | None | 0 0
  1. <?php
  2. namespace Surething\Testimonials\Controller\Adminhtml\TestimonialsImport;
  3.  
  4. use Magento\Backend\App\Action;
  5.  
  6. class Index extends \Magento\Backend\App\Action {
  7.    
  8.     public function execute() {
  9.         $this->_forward('edit');
  10.     }
  11.     /**
  12.      * @var \Magento\Framework\View\Result\PageFactory
  13.      */
  14.     //protected $resultPageFactory;
  15.  
  16.     /**
  17.      * Constructor
  18.      *
  19.      * @param \Magento\Backend\App\Action\Context $context
  20.      * @param \Magento\Framework\View\Result\PageFactory $resultPageFactory
  21.      */
  22.     /*public function __construct( \Magento\Backend\App\Action\Context $context,
  23.             \Magento\Framework\View\Result\PageFactory $resultPageFactory ) {
  24.        
  25.         parent::__construct( $context );
  26.         $this->resultPageFactory = $resultPageFactory;
  27.        
  28.     }*/
  29.  
  30.     /**
  31.      * Load the page defined in view/adminhtml/layout/exampleadminnewpage_helloworld_index.xml
  32.      *
  33.      * @return \Magento\Framework\View\Result\Page
  34.      */
  35.     /*public function execute() {
  36.         //return $resultPage = $this->resultPageFactory->create();
  37.         $this->_view->loadLayout();
  38.         $this->_view->getLayout()->initMessages();
  39.         $this->_view->renderLayout();
  40.     }*/
  41. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement