Skip to content

1.9 Release

Compare
Choose a tag to compare
@ihorchepurnyi ihorchepurnyi released this 10 Nov 17:31
· 68 commits to master since this release

Changelog

  • Enh 94027d8 : rename setting search class, add additional properties to DefaultController

Now you can override views files, setting model class and setting search class in the following way:

'admin' => [
    'modules' => [
        'settings' => [
            'class' => 'yii2mod\settings\Module',
            // Some controller properties maybe need to change.
            'controllerMap' => [
                'default' => [
                    'class' => 'yii2mod\settings\controllers\DefaultController',
                    'indexView' => 'custom path to index view file',
                    'createView' => 'custom path to create view file',
                    'updateView' => 'custom path to update view file',
                    'settingSearchClass' => 'Your own search model class',
                    'settingModelClass' => 'Your own setting model class',
                ]
            ]
        ],
    ],
]