PHP code example of skeeks / cms-view

1. Go to this page and download the library: Download skeeks/cms-view 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-view example snippets



'components' =>
[
    'view' =>
    [
        'class' => 'skeeks\cms\view\ViewComponent',
        /*'themes' =>
        [
            'one' =>
            [
                'class' => 'skeeks\cms\view\ThemeComponent',
                'name'  => 'Default',
                'pathMap'       =>
                [
                    '@app/views' =>
                    [
                        '@app/templates/one',
                        '@app/templates/default',
                    ],
                ]
            ],
            'two' => []
            //...
        ]*/
    ],

    'viewSettings' =>
    [
        'class' => 'skeeks\cms\view\ViewComponentSettings',
        /*'theme' => 'one'*/
    ],

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