infoweb-internet-solutions/yii2-cms-settings

Yii2 设置

2.0.1 2016-02-29 14:28 UTC

This package is not auto-updated.

Last update: 2024-09-28 15:59:58 UTC


README

安装

安装此扩展的首选方式是通过composer

运行以下命令之一

php composer.phar require infoweb-internet-solutions/yii2-cms-settings "*"

或者将以下内容添加到您的composer.json文件的require部分。

"infoweb-internet-solutions/yii2-cms-settings": "*"

用法

扩展安装完成后,只需按照以下方式修改您的应用程序配置

您的后端配置如下

return [
    ...
    'modules' => [
        'settings' => [
            'class' => 'infoweb\settings\Module'
        ],
    ],
    ...
];

导入翻译并使用分类 'infoweb/settings'

yii i18n/import @infoweb/settings/messages

要使用该模块,执行yii迁移

yii migrate/up --migrationPath=@vendor/infoweb-internet-solutions/yii2-cms-settings/migrations


Configuration
-------------
All available configuration options are listed below with their default values.
___
##### allowContentDuplication (type: `boolean`, default: `true`)
If this option is set to `true`, the `duplicateable` jquery plugin is activated on all translateable attributes.
___