/**
  * Index action.
  *
  * @return \Magento\Backend\Model\View\Result\Page
  */
 public function execute()
 {
     /** @var \Magento\Backend\Model\View\Result\Page $resultPage */
     $resultPage = $this->resultPageFactory->create();
     $resultPage->setActiveMenu('Dotdigitalgroup_Email::exclusion_rules');
     $resultPage->addBreadcrumb(__('Rules'), __('Rules '));
     $resultPage->getConfig()->getTitle()->prepend(__('Exclusion Rules'));
     return $resultPage;
 }
예제 #2
0
 public function renderResult()
 {
     $request_part = Request::getRequestPart();
     $dot_pos = strpos($request_part, ".");
     $page_name = substr($request_part, 1, $dot_pos - 1);
     $page = PageFactory::create($page_name, new DataHolder());
     Params::push();
     Params::importFromPost(false);
     Params::importFromGet(true);
     ob_start();
     $page->render();
     $page_result = ob_get_contents();
     ob_end_clean();
     Params::pop();
     PageData::instance()->set(Html::get_default_content_save_path(), $page_result);
     render(PageData::instance()->get("/"));
     //trova il layout e renderizza il tutto.
 }
예제 #3
0
 /**
  * Slider grid action
  *
  * @return \Magento\Framework\View\Result\Layout
  */
 public function execute()
 {
     $resultLayout = $this->resultPageFactory->create();
     return $resultLayout;
 }