dmstr/yii2-news-module

此包已被弃用且不再维护。未建议替代包。

包含文本块、图片和视频画廊的yii2新闻模块,与yii2 moximanager集成

0.0.3 2015-04-22 00:18 UTC

This package is not auto-updated.

Last update: 2022-02-01 12:46:50 UTC


README

开发配置

将此内容放入您的 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;
            },

        ]
    ]
);
```

将此内容放入您的 app/config/main.php 文件中

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