PHP code example of maks757 / yii2-data-articles
1. Go to this page and download the library: Download maks757/yii2-data-articles 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-articles example snippets
'modules' => [
'articles' => [
'class' => \maks757\articlesdata\ArticleModule::className(),
],
'egallery' => [
'class' => \maks757\egallery\GalleryModule::className()
],
//...
],
'components' => [
//start imagine
'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,
],
'thumb' => [
'width' => 300,
'height' => 300,
]
]
],
'images' => [
'size' => [
'origin' => [
'width' => 0,
'height' => 0,
],
'thumb' => [
'width' => 300,
'height' => 300,
]
]
]
]
]
],
'egallery' => [
'class' => \maks757\imagable\Imagable::className(),
'imageClass' => CreateImageMetaMulti::className(),
'nameClass' => GenerateName::className(),
'imagesPath' => '@frontend/web/images',
'categories' => [
'category' => [
'egallery' => [
'size' => [
'origin' => [
'width' => 0,
'height' => 0,
],
'thumb' => [
'width' => 300,
'height' => 300,
]
]
]
]
]
],
//end imagine
//...
],