Skip to content
This repository has been archived by the owner on Feb 28, 2018. It is now read-only.

dmstr/yii2-news-module

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Yii2 News Modul

Dev-config

put this into your app/config/bootstrap.php

```
\Yii::$container->set(
    'schmunk42\giiant\crud\providers\CallbackProvider',
    [
        'columnFormats' => [

            /**
             * hide system fields in grid
             */
            '^id$|created_at$|updated_at$' => function () {
                return false;
            },

        ],
        'activeFields' => [

            /**
             * hide system fields in grid
             */
            '^id$|created_at$|updated_at$' => function () {
                return false;
            },

        ]
    ]
);
```

put this into your app/config/main.php

```
'modules'    => [
    'news'  => [
        'class'  => \dmstr\modules\news\Module::className(),
        'layout' => '@admin-views/layouts/main',
    ],
]
```