PHP code example of mrstroz / yii2-wavecms
1. Go to this page and download the library: Download mrstroz/yii2-wavecms 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/ */
mrstroz / yii2-wavecms example snippets
'modules' => [
// ...
'wavecms' => [
'class' => 'mrstroz\wavecms\Module',
'languages' => ['en','pl']
],
],
// ...
'components' => [
// ...
'user' => [
'identityClass' => 'mrstroz\wavecms\models\User', //Change identity class
// ...
],
]
// ...
'controllerMap' => [
'elfinder' => [
'class' => 'mihaildev\elfinder\Controller',
'access' => ['@'],
'disabledCommands' => ['netmount'],
'roots' => [
[
'baseUrl'=>'@frontWeb',
'basePath'=>'@frontWebroot',
'path' => 'userfiles',
'name' => 'Files'
]
]
]
]
'components' => [
'authManager' => [
'class' => 'yii\rbac\DbManager',
],
]
// Add migrationPaths to console config:
'controllerMap' => [
'migrate' => [
'class' => 'yii\console\controllers\MigrateController',
'migrationPath' => [
'@app/migrations',
'@yii/rbac/migrations/',
'@yii/i18n/migrations/',
'@vendor/mrstroz/yii2-wavecms/migrations/',
'@vendor/yii2mod/yii2-settings/migrations/'
],
],
],
'modules' => [
// ...
'wavecms' => [
'class' => 'mrstroz\wavecms\Module'
],
],
'modules' => [
// ...
'wavecms' => [
'class' => 'mrstroz\wavecms\Module',
'languages' => ['en','pl'],
'classMap' => [
'User' => \common\models\User::class
]
],
],
'container' => [
'definitions' => [
mrstroz\wavecms\models\User::class => common\models\User::class
],
],
'modules' => [
// ...
'wavecms' => [
'class' => 'mrstroz\wavecms\Module',
'languages' => ['en','pl'],
'controllerMap' => [
'user' => 'backend\controllers\UserController'
]
],
],
'components' => [
// ...
'view' => [
'theme' => [
'basePath' => '@app/themes/basic',
'baseUrl' => '@web/themes/basic',
'pathMap' => [
'@wavecms/views' => '@app/themes/basic/wavecms',
],
],
],
// ...
],
'modules' => [
// ...
'wavecms' => [
'class' => 'mrstroz\wavecms\Module',
'languages' => ['en','pl']
],
// ...
]
'components' => [
// ...
'i18n' => [
'translations' => [
'*' => [
'class' => 'yii\i18n\DbMessageSource',
],
],
],
],