1. Go to this page and download the library: Download maks757/yii2-data-events library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
maks757 / yii2-data-events example snippets
'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
],
//...
],