Advertisement
johncarlson21

Edit.php

Jan 16th, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.53 KB | None | 0 0
  1. <?php
  2. namespace Surething\Testimonials\Controller\Adminhtml\TestimonialsImport;
  3.  
  4. class Edit extends \Magento\Backend\App\Action {
  5.  
  6.     public function execute() {
  7.        
  8.         $model = $this->_objectManager->create('Surething\Testimonials\Model\Testimonials');
  9.        
  10.         $registryObject = $this->_objectManager->get('Magento\Framework\Registry');
  11.         $registryObject->register('testimonials_testimonials', $model);
  12.        
  13.         $this->_view->loadLayout();
  14.         $this->_view->getLayout()->initMessages();
  15.         $this->_view->renderLayout();
  16.     }
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement