PHP code example of skeeks / cms-saved-filters

1. Go to this page and download the library: Download skeeks/cms-saved-filters 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/ */

    

skeeks / cms-saved-filters example snippets



'components' =>
[
    'savedFilters' => [
        'class'     => 'skeeks\cms\savedFilters\SavedFiltersComponent',
        'saveSettingsToDb' => 'json' // or serialize
    ],

    'urlManager' => [
        'rules' => [
            'skeeks\cms\savedFilters\SavedFiltersUrlRule' => [
                'class' => 'skeeks\cms\savedFilters\SavedFiltersUrlRule',
            ],
        ]
    ],

    'cms' =>
    [
        'relatedHandlers' => [
            'skeeks\cms\savedFilters\RelatedHandlerSavedFilter' =>
            [
                'class' => 'skeeks\cms\savedFilters\RelatedHandlerSavedFilter'
            ]
        ],
    ],

    'i18n' => [
        'translations' =>
        [
            'skeeks/savedFilters' => [
                'class'             => 'yii\i18n\PhpMessageSource',
                'basePath'          => '@skeeks/cms-saved-filters/savedFilters/messages',
                'fileMap' => [
                    'skeeks/savedFilters' => 'main.php',
                ],
            ]
        ]
    ]
],

'modules' =>
[
    'savedFilters' => [
        'class'         => 'skeeks\cms\savedFilters\SavedFiltersModule',
    ]
]


php composer.phar