PHP code example of robote13 / yii2-catalog

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

    

robote13 / yii2-catalog example snippets


'modules' => [
    'backend'=>[
        'modules'=>[
            'shop-catalog' => [
                'class' => 'robote13\catalog\Module',
                'controllerNamespace' => 'robote13\catalog\backend\controllers',
            ],
        ]
    ],
    'shop-catalog' => [
        'class' => 'robote13\catalog\Module'
    ],
],

'components' => [
    'catalogPreviews'=>function(){
        $adapter = new League\Flysystem\Adapter\Local(Yii::getAlias('@app/web/catalog-previews'));
        return new \League\Flysystem\Filesystem($adapter);
    }
]

php composer.phar