Skip to content

1.5 Release

Compare
Choose a tag to compare
@ihorchepurnyi ihorchepurnyi released this 10 Nov 18:25
· 35 commits to master since this release

Changelog

  • Enh 622a9d1 : added new properties to CmsController, rename cms search class.

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

'modules' => [
    'admin' => [
        'controllerMap' => [
            'cms' => [
                'class' => 'yii2mod\cms\controllers\CmsController',
                'searchClass' => [
                    'class' => 'yii2mod\cms\models\search\CmsSearch',
                    'pageSize' => 25
                ],
                'modelClass' => 'Your own cms model class',
                'indexView' => 'custom path to index view file',
                'createView' => 'custom path to create view file',
                'updateView' => 'custom path to update view file',
            ],
        ],
    ],
],