dmstr / yii2-news-module
yii2 news module with text blocks image and video gallery, with yii2 moximanager
Installs: 2 270
Dependents: 0
Suggesters: 0
Security: 0
Stars: 6
Watchers: 5
Forks: 4
Open Issues: 0
Type:yii2-module
Requires
Requires (Dev)
- schmunk42/yii2-giiant: dev-master
This package is not auto-updated.
Last update: 2022-02-01 12:46:50 UTC
README
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',
],
]
```