PHP code example of it-yakutia / yii2-gallery

1. Go to this page and download the library: Download it-yakutia/yii2-gallery 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/ */

    

it-yakutia / yii2-gallery example snippets


'controllerMap' => [
    ...
    'migrate' => [
        ...
        'migrationPath' => [
            ...
            '@it-yakutia/gallery/src/migrations',
            ...
        ],
    ],
],

return [
    /* ... */
    'domain' => 'https://yourdomain.example',
];

Url::toRoute('/gallery/back/index');

'custom_view_for_modules' => [
    'gallery_front' => [
        'view' => '@frontend/views/front_page/view',
    ],
],
sh
php yii migrate
sh
php yii fixture GalleryPhoto --namespace='ityakutia\gallery\tests\fixtures' 
sh
php yii fixture GalleryPhoto --namespace='ityakutia\gallery\tests\fixtures' --interactive=0