<?php
class AdminMyModuleController extends ModuleAdminController
{
public function __construct()
{
$this->bootstrap = true;
parent::__construct();
//data to the grid of the "view" action
$this->fields_list = [
'id_mymodule_class' => [
'title' => $this->l('ID'),
'type' => 'text',
'align' => 'center',
'class' => 'fixed-width-xs',
],
...
//fields to add/edit form
$this->fields_form = [
'legend' => [
'title' => $this->l('General Information'),
],
'input' => [
'name' => [
'type' => 'text',
'label' => $this->l('Name'),
'name' => 'name',
'required' => true,
'lang' => true
],
...
'submit' => [
'title' => $this->l('Save'),
],
];
}
public function initContent()
{
parent::initContent();
}
}