<?php $params = (require __DIR__ . '/params.php'); $config = ['id' => 'basic', 'basePath' => dirname(__DIR__), 'bootstrap' => ['log'], 'modules' => ['user' => ['class' => 'dektrium\\user\\Module', 'admins' => ['admin2'], 'mailer' => ['sender' => '*****@*****.**', 'welcomeSubject' => 'Welcome subject', 'confirmationSubject' => 'Confirmation subject', 'reconfirmationSubject' => 'Email change subject', 'recoverySubject' => 'Recovery subject']]], 'components' => ['authClientCollection' => ['class' => yii\authclient\Collection::className(), 'clients' => ['facebook' => ['class' => 'dektrium\\user\\clients\\Facebook', 'clientId' => '474327099373950', 'clientSecret' => '9917a1e5591b8e1cda02e22d89f9cd9f']]], 'request' => ['cookieValidationKey' => 'JJ1alWN21cbJbAL-FFseMy8nqaWjioao'], 'cache' => ['class' => 'yii\\caching\\FileCache'], 'urlManager' => ['enablePrettyUrl' => true], 'errorHandler' => ['errorAction' => 'site/error'], 'mailer' => ['class' => 'yii\\swiftmailer\\Mailer', 'viewPath' => '@app/mail', 'transport' => ['class' => 'Swift_SmtpTransport', 'host' => 'smtp.gmail.com', 'username' => '*****@*****.**', 'password' => '22854609', 'port' => '587', 'encryption' => 'tls']], 'log' => ['traceLevel' => YII_DEBUG ? 3 : 0, 'targets' => [['class' => 'yii\\log\\FileTarget', 'levels' => ['error', 'warning']]]], 'db' => require __DIR__ . '/db.php'], 'params' => $params]; if (YII_ENV_DEV) { // configuration adjustments for 'dev' environment $config['bootstrap'][] = 'debug'; $config['modules']['debug'] = 'yii\\debug\\Module'; $config['bootstrap'][] = 'gii'; $config['modules']['gii'] = 'yii\\gii\\Module'; } return $config;
<?php Yii::setAlias('@tests', dirname(__DIR__) . '/tests'); $params = (require __DIR__ . '/params.php'); $db = (require __DIR__ . '/db.php'); $config = ['modules' => ['user' => ['class' => 'dektrium\\user\\Module', 'enableUnconfirmedLogin' => true, 'confirmWithin' => 21600, 'cost' => 12, 'admins' => ['admin']]], 'id' => 'basic-console', 'basePath' => dirname(__DIR__), 'bootstrap' => ['log'], 'controllerNamespace' => 'app\\commands', 'components' => ['authClientCollection' => ['class' => yii\authclient\Collection::className(), 'clients' => ['facebook' => ['class' => 'dektrium\\user\\clients\\Facebook', 'clientId' => '655368087938948', 'clientSecret' => '207807ea96a4d272f498bbcc4392ad74']]], 'cache' => ['class' => 'yii\\caching\\FileCache'], 'log' => ['targets' => [['class' => 'yii\\log\\FileTarget', 'levels' => ['error', 'warning']]]], 'db' => $db], 'params' => $params]; if (YII_ENV_DEV) { // configuration adjustments for 'dev' environment $config['bootstrap'][] = 'gii'; $config['modules']['gii'] = ['class' => 'yii\\gii\\Module']; } return $config;
<?php return ['language' => 'ru-RU', 'vendorPath' => dirname(dirname(__DIR__)) . '/vendor', 'components' => ['assetManager' => ['linkAssets' => true], 'cache' => ['class' => 'yii\\caching\\ArrayCache'], 'admin' => ['class' => 'simplator\\admin\\components\\Admin'], 'settings' => ['class' => 'simplator\\settings\\components\\Settings'], 'authManager' => ['class' => 'yii\\rbac\\DbManager', 'cache' => 'cache', 'cacheKey' => 'rbac_', 'defaultRoles' => ['guest']], 'authClientCollection' => ['class' => yii\authclient\Collection::className(), 'clients' => []]], 'modules' => ['user' => ['class' => 'dektrium\\user\\Module', 'admins' => ['admin'], 'enableUnconfirmedLogin' => true], 'articles' => ['class' => 'simplator\\articles\\Module'], 'threads' => ['class' => 'simplator\\threads\\Module'], 'admin' => ['class' => 'simplator\\admin\\Module'], 'medialib' => ['class' => 'simplator\\medialib\\Module'], 'userctl' => ['class' => 'simplator\\user\\Module'], 'settings' => ['class' => 'simplator\\settings\\Module'], 'rbac' => ['class' => 'mdm\\admin\\Module', 'layout' => '@backend/views/layouts/main']]];
<?php $params = (require __DIR__ . '/params.php'); $config = ['id' => 'basic', 'name' => 'Forge', 'basePath' => dirname(__DIR__), 'bootstrap' => ['log'], 'language' => 'ru-RU', 'components' => ['request' => ['cookieValidationKey' => 'n05-rj-8OyylKrh0OW4A88uFjrZrYe6R', 'baseUrl' => ''], 'i18n' => ['translations' => ['app*' => ['class' => 'yii\\i18n\\PhpMessageSource', 'fileMap' => ['app' => 'app.php', 'app/error' => 'error.php']]]], 'urlManager' => ['enablePrettyUrl' => true, 'showScriptName' => false, 'rules' => ['' => 'site/index', '/blog/user_<userid:\\d+>' => 'blog/userblog', '/blog/user_<userid:\\d+>/<catid:\\d+>' => 'blog/userblog', '/blog/user_<userid:\\d+>/<catid:\\d+>/read_<viewid:\\d+>' => 'blog/view', '/blog' => 'blog/index', '/blog/<catid:\\d+>' => 'blog/userblog', '/blog/<catid:\\d+>/read_<viewid:\\d+>' => 'blog/view', '<controller:\\w+>/<action:\\w+>/<id:\\d+>' => '<controller>/<action>', '<controller:\\w+>/<action:\\w+>' => '<controller>/<action>', '<action>' => 'site/<action>']], 'cache' => ['class' => 'yii\\caching\\FileCache'], 'user' => ['enableAutoLogin' => true], 'authManager' => ['class' => 'yii\\rbac\\DbManager'], 'authClientCollection' => ['class' => yii\authclient\Collection::className(), 'clients' => ['facebook' => ['class' => 'dektrium\\user\\clients\\Facebook', 'clientId' => 'CLIENT_ID', 'clientSecret' => 'CLIENT_SECRET'], 'twitter' => ['class' => 'dektrium\\user\\clients\\Twitter', 'consumerKey' => 'CONSUMER_KEY', 'consumerSecret' => 'CONSUMER_SECRET'], 'google' => ['class' => 'dektrium\\user\\clients\\Google', 'clientId' => 'CLIENT_ID', 'clientSecret' => 'CLIENT_SECRET'], 'yandex' => ['class' => 'dektrium\\user\\clients\\Yandex', 'clientId' => 'CLIENT_ID', 'clientSecret' => 'CLIENT_SECRET'], 'vkontakte' => ['class' => 'dektrium\\user\\clients\\VKontakte', 'clientId' => 'CLIENT_ID', 'clientSecret' => 'CLIENT_SECRET']]], 'errorHandler' => ['errorAction' => 'site/error'], 'mailer' => ['class' => 'yii\\swiftmailer\\Mailer', 'useFileTransport' => true], 'log' => ['traceLevel' => YII_DEBUG ? 3 : 0, 'targets' => [['class' => 'yii\\log\\FileTarget', 'levels' => ['error', 'warning']]]], 'db' => require __DIR__ . '/db.php'], 'modules' => ['user' => ['class' => 'dektrium\\user\\Module', 'admins' => ['Stanislav'], 'controllerMap' => ['admin' => ['class' => 'dektrium\\user\\controllers\\AdminController', 'layout' => '@app/views\\layouts\\user\\admin'], 'settings' => ['class' => 'dektrium\\user\\controllers\\SettingsController', 'layout' => '@app/views\\layouts\\user\\settings'], 'registration' => ['class' => 'dektrium\\user\\controllers\\RegistrationController', 'layout' => '@app/views\\layouts\\user\\login'], 'recovery' => ['class' => 'dektrium\\user\\controllers\\RecoveryController', 'layout' => '@app/views\\layouts\\user\\login'], 'security' => ['class' => 'dektrium\\user\\controllers\\SecurityController', 'layout' => '@app/views\\layouts\\user\\login']]], 'rbac' => ['class' => 'dektrium\\rbac\\Module', 'controllerMap' => ['role' => ['class' => 'dektrium\\rbac\\controllers\\RoleController', 'layout' => '@app/views\\layouts\\user\\admin'], 'item' => ['class' => 'dektrium\\rbac\\controllers\\ItemController', 'layout' => '@app/views\\layouts\\user\\admin'], 'permission' => ['class' => 'dektrium\\rbac\\controllers\\PermissionController', 'layout' => '@app/views\\layouts\\user\\admin'], 'assignment' => ['class' => 'dektrium\\user\\controllers\\AssignmentController', 'layout' => '@app/views\\layouts\\user\\admin']]]], 'params' => $params]; if (YII_ENV_DEV) { // configuration adjustments for 'dev' environment $config['bootstrap'][] = 'debug'; $config['modules']['debug'] = ['class' => 'yii\\debug\\Module']; $config['bootstrap'][] = 'gii'; $config['modules']['gii'] = ['class' => 'yii\\gii\\Module']; } return $config;
<?php $params = (require __DIR__ . '/params.php'); $config = ['name' => 'KERJA', 'id' => 'basic', 'basePath' => dirname(__DIR__), 'defaultRoute' => 'kerja/kerja', 'controllerMap' => ['elfinder' => ['class' => 'mihaildev\\elfinder\\Controller', 'access' => ['@'], 'disabledCommands' => ['netmount'], 'roots' => [['baseUrl' => '@web', 'basePath' => '@webroot', 'path' => 'uploads/content', 'name' => 'Home']]]], 'components' => ['devicedetect' => ['class' => '\\alexandernst\\devicedetect\\DeviceDetect'], 'urlManager' => ['class' => 'yii\\web\\UrlManager', 'enablePrettyUrl' => true, 'showScriptName' => false, 'rules' => [['class' => 'yii\\rest\\UrlRule', 'controller' => ['service/dokter', 'service/chat']]]], 'assetManager' => ['bundles' => ['dmstr\\web\\AdminLteAsset' => ['skin' => 'skin-purple']]], 'mailer' => ['class' => 'yii\\swiftmailer\\Mailer', 'useFileTransport' => true, 'messageConfig' => ['from' => [$params['adminEmail'] => 'PT SIMA'], 'charset' => 'UTF-8']], 'authClientCollection' => ['class' => yii\authclient\Collection::className(), 'clients' => []], 'request' => ['cookieValidationKey' => 'neo'], 'errorHandler' => ['errorAction' => 'site/error'], 'log' => ['traceLevel' => YII_DEBUG ? 3 : 0, 'targets' => [['class' => 'yii\\log\\FileTarget', 'levels' => ['error', 'warning']]]], 'db' => require __DIR__ . '/db.php', 'authManager' => ['class' => 'yii\\rbac\\DbManager'], 'view' => ['theme' => ['pathMap' => ['@dektrium/user/views' => '@app/views/user']]]], 'modules' => ['dynagrid' => ['class' => '\\kartik\\dynagrid\\Module', 'defaultPageSize' => 30, 'dynaGridOptions' => ['theme' => 'panel-default', 'toggleButtonGrid' => ['label' => '<i class="fa fa-gear"></i> <span class=" hidden-xs">Custom Tabel</span>'], 'toggleButtonFilter' => ['label' => '<i class="fa fa-filter"></i> <span class=" hidden-xs">Filter</span>'], 'toggleButtonSort' => ['label' => '<i class="fa fa-sort"></i> <span class=" hidden-xs">Urutan</span>'], 'gridOptions' => ['floatHeader' => false, 'pjax' => true, 'hover' => true, 'responsive' => true, 'responsiveWrap' => false, 'resizableColumns' => true, 'striped' => false, 'export' => ['label' => '<span class=" hidden-xs">Export</span>'], 'toggleDataOptions' => ['all' => ['icon' => 'resize-full', 'label' => Yii::t('app', '<span class=" hidden-xs"> Tampilkan Semua </span>'), 'class' => 'btn btn-default', 'title' => 'Tampilkan Semua'], 'page' => ['icon' => 'resize-small', 'label' => Yii::t('app', '<span class=" hidden-xs"> Tampilkan Perhalaman </span>'), 'class' => 'btn btn-default', 'title' => 'Tampilkan Perhalaman']], 'panel' => ['heading' => '<b>Kelola Data</b>', 'before' => '{dynagrid} {dynagridFilter} {dynagridSort}'], 'rowOptions' => function ($model, $key, $index, $gird) { $contextMenuId = $gird->columns[0]->contextMenuId; return ['data' => ['toggle' => 'context', 'target' => "#" . $contextMenuId]]; }], 'storage' => \kartik\dynagrid\DynaGrid::TYPE_DB, 'columns' => [['class' => \liyunfang\contextmenu\KartikSerialColumn::className(), 'order' => \kartik\dynagrid\DynaGrid::ORDER_FIX_LEFT, 'contextMenu' => true, 'contentOptions' => ['class' => 'kartik-sheet-style'], 'headerOptions' => ['class' => 'kartik-sheet-style']]]]], 'gridview' => ['class' => '\\kartik\\grid\\Module'], 'datecontrol' => ['class' => 'kartik\\datecontrol\\Module', 'displaySettings' => ['date' => 'd-m-Y', 'time' => 'H:i:s A', 'datetime' => 'd-m-Y H:i:s A'], 'saveSettings' => ['date' => 'Y-m-d', 'time' => 'H:i:s', 'datetime' => 'Y-m-d H:i:s'], 'autoWidget' => true], 'rbac' => ['class' => 'dektrium\\rbac\\Module'], 'user' => ['class' => 'dektrium\\user\\Module', 'enableUnconfirmedLogin' => false, 'enableConfirmation' => false, 'enableRegistration' => false, 'enablePasswordRecovery' => false, 'confirmWithin' => 21600, 'cost' => 12, 'admins' => ['aldi'], 'mailer' => ['sender' => '*****@*****.**', 'welcomeSubject' => 'Welcome subject', 'confirmationSubject' => 'Confirmation subject', 'reconfirmationSubject' => 'Email change subject', 'recoverySubject' => 'Recovery subject'], 'controllerMap' => ['login' => ['class' => 'dektrium\\user\\controllers\\LoginController', 'layout' => '@app/views/layouts/main-login'], 'registration' => ['class' => 'dektrium\\user\\controllers\\RegistrationController', 'layout' => '@app/views/layouts/main-login']]], 'dynamicrelations' => ['class' => '\\synatree\\dynamicrelations\\Module'], 'kerja' => ['class' => 'app\\modules\\kerja\\Module']], 'params' => $params]; if (YII_ENV_DEV) { // configuration adjustments for 'dev' environment $config['bootstrap'][] = 'debug'; $config['modules']['debug'] = 'yii\\debug\\Module'; // GII KRAJEE $config['modules']['gii']['class'] = 'yii\\gii\\Module'; $config['modules']['gii']['generators'] = ['kartikgii-crud' => ['class' => 'warrence\\kartikgii\\crud\\Generator'], 'crud' => ['class' => 'yii\\gii\\generators\\crud\\Generator', 'templates' => ['mycrud' => '@app/templates/crud']], 'mongoDbModel' => ['class' => 'yii\\mongodb\\gii\\model\\Generator']]; ## MONGODB GII // $config['bootstrap'][] = 'gii'; // $config['modules']['gii'] = ['class' => 'yii\gii\Module', // 'generators' => [ // 'mongoDbModel' => [ // 'class' => 'yii\mongodb\gii\model\Generator' // ], // 'crud' => [ // 'class' => 'yii\gii\generators\crud\Generator', // 'templates' => ['mycrud' => '@app/templates/crud'] // ] // ], // ]; } return $config;
<?php use kartik\datecontrol\Module; $params = array_merge(require __DIR__ . '/../../common/config/params.php', require __DIR__ . '/../../common/config/params-local.php', require __DIR__ . '/params.php', require __DIR__ . '/params-local.php'); return ['id' => 'app-frontend', 'basePath' => dirname(__DIR__), 'bootstrap' => ['log'], 'controllerNamespace' => 'frontend\\controllers', 'components' => ['formatter' => ['class' => 'yii\\i18n\\Formatter', 'locale' => 'sr-RS'], 'user' => ['identityCookie' => ['name' => '_frontendIdentity', 'path' => '/', 'httpOnly' => true], 'identityClass' => 'common\\models\\User', 'class' => 'common\\components\\User', 'enableAutoLogin' => true, 'loginUrl' => ['login']], 'session' => ['name' => 'FRONTENDSESSID', 'cookieParams' => ['httpOnly' => true, 'path' => '/']], 'log' => ['traceLevel' => YII_DEBUG ? 3 : 0, 'targets' => [['class' => 'yii\\log\\FileTarget', 'levels' => ['error', 'warning']]]], 'errorHandler' => ['errorAction' => 'site/error'], 'operator' => ['class' => 'common\\components\\Operator'], 'view' => ['class' => 'common\\components\\View'], 'authClientCollection' => ['class' => yii\authclient\Collection::className(), 'clients' => ['facebook' => ['class' => 'dektrium\\user\\clients\\Facebook', 'clientId' => '1565800557068729', 'clientSecret' => 'f7f7a6e4c23678e9b134be9c3c1d7d89'], 'twitter' => ['class' => 'dektrium\\user\\clients\\Twitter', 'consumerKey' => 'CONSUMER_KEY', 'consumerSecret' => 'CONSUMER_SECRET'], 'google' => ['class' => 'dektrium\\user\\clients\\Google', 'clientId' => 'CLIENT_ID', 'clientSecret' => 'CLIENT_SECRET']]]], 'bootstrap' => [['class' => '\\common\\components\\LanguageSelector', 'supportedLanguages' => ['en_US', 'sr_RS']]], 'modules' => ['datecontrol' => ['class' => '\\kartik\\datecontrol\\Module', 'displaySettings' => [Module::FORMAT_DATE => 'dd. MMM yyyy.', Module::FORMAT_TIME => 'H:mm', Module::FORMAT_DATETIME => 'dd. MMM yyyy. H:mm'], 'saveSettings' => [Module::FORMAT_DATE => 'php:Y-m-d', Module::FORMAT_TIME => 'php:H:i:s', Module::FORMAT_DATETIME => 'php:Y-m-d H:i:s'], 'autoWidget' => true, 'autoWidgetSettings' => [Module::FORMAT_DATE => ['type' => 2, 'pluginOptions' => ['autoclose' => true]], Module::FORMAT_DATETIME => [], Module::FORMAT_TIME => []], 'widgetSettings' => [Module::FORMAT_DATE => ['class' => 'yii\\jui\\DatePicker', 'options' => ['dateFormat' => 'php:Y-m-d', 'options' => ['class' => 'form-control']]]]], 'user' => ['as frontend' => 'dektrium\\user\\filters\\FrontendFilter']], 'params' => $params];
<?php $params = (require __DIR__ . '/params.php'); $config = ['modules' => ['user' => ['class' => 'dektrium\\user\\Module', 'enableUnconfirmedLogin' => true, 'confirmWithin' => 21600, 'cost' => 12, 'admins' => ['admin']]], 'id' => 'basic', 'basePath' => dirname(__DIR__), 'bootstrap' => ['log'], 'components' => ['authClientCollection' => ['class' => yii\authclient\Collection::className(), 'clients' => ['facebook' => ['class' => 'dektrium\\user\\clients\\Facebook', 'clientId' => '655368087938948', 'clientSecret' => '207807ea96a4d272f498bbcc4392ad74']]], 'request' => ['cookieValidationKey' => 'Iwi0DunVHvs5YfdAeblq8yHn0dmTmdrg'], 'cache' => ['class' => 'yii\\caching\\FileCache'], 'errorHandler' => ['errorAction' => 'site/error'], 'mailer' => ['class' => 'yii\\swiftmailer\\Mailer', 'useFileTransport' => false, 'transport' => ['class' => 'Swift_SmtpTransport', 'host' => 'smtp.gmail.com', 'username' => '*****@*****.**', 'password' => 'jupit3r2911', 'port' => '587', 'encryption' => 'tls']], 'log' => ['traceLevel' => YII_DEBUG ? 3 : 0, 'targets' => [['class' => 'yii\\log\\FileTarget', 'levels' => ['error', 'warning']]]], 'db' => require __DIR__ . '/db.php'], 'params' => $params]; if (YII_ENV_DEV) { // configuration adjustments for 'dev' environment $config['bootstrap'][] = 'debug'; $config['modules']['debug'] = ['class' => 'yii\\debug\\Module']; $config['bootstrap'][] = 'gii'; $config['modules']['gii'] = ['class' => 'yii\\gii\\Module']; } return $config;