123456789101112131415161718192021222324252627282930313233343536373839 |
- <?php
- namespace Smartwave\Dailydeals\Controller\Adminhtml\Dailydeal;
- class NewAction extends \Magento\Backend\App\Action
- {
- /**
- * Redirect result factory
- *
- * @var \Magento\Backend\Model\View\Result\ForwardFactory
- */
- protected $resultForwardFactory;
- /**
- * constructor
- *
- * @param \Magento\Backend\Model\View\Result\ForwardFactory $resultForwardFactory
- * @param \Magento\Backend\App\Action\Context $context
- */
- public function __construct(
- \Magento\Backend\Model\View\Result\ForwardFactory $resultForwardFactory,
- \Magento\Backend\App\Action\Context $context
- ) {
-
- $this->resultForwardFactory = $resultForwardFactory;
- parent::__construct($context);
- }
- /**
- * forward to edit
- *
- * @return \Magento\Backend\Model\View\Result\Forward
- */
- public function execute()
- {
- $resultForward = $this->resultForwardFactory->create();
- $resultForward->forward('edit');
- return $resultForward;
- }
- }
|