Skip to content

skeeks-cms/cms-view

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

View for SkeekS CMS

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