maks757/yii2-data-events

There is no license information available for the latest version (0.0.001) of this package.

Events module.

Installs: 1

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Type:yii2-extension

0.0.001 2017-02-15 15:31 UTC

This package is not auto-updated.

Last update: 2024-11-24 03:41:03 UTC


README

backend config

'modules' => [
    'articles' => [
        'class' => \maks757\articlesdata\ArticleModule::className(),
        // activate multi language
        'multi_languages' => true, // default false
        'language_class' => Object::className(), // yor language model, ( Language::className() )
        'language_default' => 1, // yor language model, param id ( Language::find()->one()->id or Language::find()->one()->getPrimaryKey() )
        'language_where' => ['show' => true], // yor language model, method where()
        'language_field' => 'name' // yor language model, field name language
    ],
    //...
],

common config

'components' => [
        'article' => [
            'class' => \maks757\imagable\Imagable::className(),
            'imageClass' => CreateImageMetaMulti::className(),
            'nameClass' => GenerateName::className(),
            'imagesPath' => '@frontend/web/images',
            'categories' => [
                'category' => [
                    'article' => [
                        'size' => [
                            'origin' => [
                                'width' => 0,
                                'height' => 0,
                            ]
                        ]
                    ],
                    'images' => [
                        'size' => [
                            'origin' => [
                                'width' => 0,
                                'height' => 0,
                            ]
                        ]
                    ]
                ]
            ]
        ],
        //...
    ],

Alt text