controllers/Measures.php
<?php namespace Lovata\Shopaholic\Controllers;
use BackendMenu;
use Backend\Classes\Controller;
use System\Classes\SettingsManager;
/**
* Class Measures
* @package Lovata\Shopaholic\Controllers
* @author Andrey Kharanenka, a.khoronenko@lovata.com, LOVATA Group
*/
class Measures extends Controller
{
public $implement = [
'Backend.Behaviors.ListController',
'Backend.Behaviors.FormController',
];
public $listConfig = 'config_list.yaml';
public $formConfig = 'config_form.yaml';
/**
* Measures constructor.
*/
public function __construct()
{
parent::__construct();
BackendMenu::setContext('October.System', 'system', 'settings');
SettingsManager::setContext('Lovata.Shopaholic', 'shopaholic-menu-measure');
}
}