2017 © Pedro Peláez
 

yii2-extension yii2-data-events

Events module.

image

maks757/yii2-data-events

Events module.

  • Friday, February 17, 2017
  • by maks757
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

yii2-data-articles

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, (*1)

The Versions