skeeks/cms-view

View for SkeekS CMS

Installs: 34

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 4

Forks: 0

Type:yii2-extension

1.1.2 2019-03-07 12:33 UTC

This package is auto-updated.

Last update: 2024-10-08 07:25:57 UTC


README

Installation

The preferred way to install this extension is through composer.

Either run

php composer.phar require --prefer-dist skeeks/cms-view "*"

or add

"skeeks/cms-view": "*"

Configuration app

'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',
                ],
            ]
        ]
    ],
]

skeeks!
SkeekS CMS (Yii2) — quickly, easily and effectively!
skeeks.com | cms.skeeks.com