create a configuration form in magento 2 admin interface

Solutions on MaxInterview for create a configuration form in magento 2 admin interface by the best coders in the world

showing results for - "create a configuration form in magento 2 admin interface"
Constanza
20 Jul 2018
1<?php
2
3namespace [Name_Space]\[Your_Module]\Controller\Adminhtml\SampleForm;
4
5class Index extends \Magento\Framework\App\Action\Action
6{
7/** @var \Magento\Framework\View\Result\PageFactory  */
8protected $resultPageFactory;
9public function __construct(
10     \Magento\Framework\App\Action\Context $context,
11     \Magento\Framework\View\Result\PageFactory $resultPageFactory
12) {
13     $this->resultPageFactory = $resultPageFactory;
14     parent::__construct($context);
15}
16/**
17* Load the page defined in view/adminhtml/layout/samplenewpage_sampleform_index.xml
18*
19* @return \Magento\Framework\View\Result\Page
20*/
21public function execute()
22{
23     return $this->resultPageFactory->create();
24}
25}
26
similar questions