Example #1
0
<?php

use kartik\mpdf\Pdf;
$params = (require __DIR__ . '/params.php');
$config = ['id' => 'basic', 'basePath' => dirname(__DIR__), 'bootstrap' => ['log'], 'modules' => ['gridview' => ['class' => '\\kartik\\grid\\Module'], 'rbac' => ['class' => 'dektrium\\rbac\\Module', 'admins' => ['admin', 'Superadmin']]], 'components' => ['pdf' => ['class' => Pdf::classname(), 'format' => Pdf::FORMAT_A4, 'orientation' => Pdf::ORIENT_PORTRAIT, 'destination' => Pdf::DEST_BROWSER], 'assetManager' => ['bundles' => ['dmstr\\web\\AdminLteAsset' => ['skin' => 'skin-blue']]], 'request' => ['cookieValidationKey' => 'gymgecko-admn'], 'cache' => ['class' => 'yii\\caching\\FileCache'], 'user' => ['identityClass' => 'app\\models\\User', 'enableAutoLogin' => true], 'errorHandler' => ['errorAction' => 'site/error'], 'urlManager' => ['enablePrettyUrl' => true, 'showScriptName' => false], '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;
Example #2
0
<?php

use kartik\mpdf\Pdf;
$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-backend', 'basePath' => dirname(__DIR__), 'controllerNamespace' => 'backend\\controllers', 'bootstrap' => ['log'], 'modules' => [], 'homeUrl' => '/admin', 'components' => ['request' => ['baseUrl' => '/admin'], 'urlManager' => ['enablePrettyUrl' => false, 'showScriptName' => true], 'pdf' => ['class' => Pdf::classname(), 'format' => Pdf::FORMAT_A4, 'orientation' => Pdf::ORIENT_PORTRAIT, 'destination' => Pdf::DEST_BROWSER], 'user' => ['identityClass' => 'common\\models\\User', 'enableAutoLogin' => true], 'log' => ['traceLevel' => YII_DEBUG ? 3 : 0, 'targets' => [['class' => 'yii\\log\\FileTarget', 'levels' => ['error', 'warning']]]], 'errorHandler' => ['errorAction' => 'site/error']], 'params' => $params];
Example #3
0
<?php

Yii::setAlias('@themes', dirname(__DIR__) . '/themes');
$params = (require __DIR__ . '/params.php');
use kartik\mpdf\Pdf;
$config = ['id' => 'basic', 'basePath' => dirname(__DIR__), 'bootstrap' => ['log'], 'language' => 'th', 'modules' => ['gridview' => ['class' => '\\kartik\\grid\\Module'], 'user' => ['class' => 'dektrium\\user\\Module']], 'components' => ['pdf' => ['class' => Pdf::classname(), 'format' => Pdf::FORMAT_A4, 'orientation' => Pdf::ORIENT_PORTRAIT, 'destination' => Pdf::DEST_BROWSER], 'cart' => ['class' => 'yz\\shoppingcart\\ShoppingCart', 'cartId' => 'my_application_cart'], 'thaiFormatter' => ['class' => 'dixonsatit\\thaiYearFormatter\\ThaiYearFormatter'], 'request' => ['cookieValidationKey' => 'cptAfR4ZoNM81Y54zFCnlJ_CzyrgT4BI'], 'cache' => ['class' => 'yii\\caching\\FileCache'], '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'], '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';
    //$config['modules']['gii'] = ['class' => 'yii\gii\Module', 'allowedIPs' => ['1.179.182.82']];
    $config['modules']['gii'] = ['class' => 'yii\\gii\\Module', 'allowedIPs' => ['127.0.0.1', '::1', '192.168.0.*', '1.179.182.82']];
}
return $config;
return array_merge_recursive($config, require $_SERVER['DOCUMENT_ROOT'] . '/vendor/noumo/easyii/config/easyii.php');
<?php

use kartik\mpdf\Pdf;
$params = (require __DIR__ . '/params.php');
$config = ['id' => 'basic', 'basePath' => dirname(__DIR__), 'bootstrap' => ['log'], 'components' => ['pdf' => ['class' => Pdf::classname(), 'format' => Pdf::FORMAT_A4, 'filename' => 'Contrato_empresa.pdf', 'orientation' => Pdf::ORIENT_PORTRAIT, 'destination' => Pdf::DEST_BROWSER, 'mode' => Pdf::MODE_CORE, 'options' => ['title' => 'Contratos Generados por Evnt Manager', 'subject' => 'Generating PDF files via yii2-mpdf extension has never been easy'], 'methods' => ['SetHeader' => ['El nombre de su empresa||Fecha de creación: ' . date("r")], 'SetFooter' => ['|Page {PAGENO}|']]], 'request' => ['cookieValidationKey' => 'LGXkWvibdS1IrlARgmP2YF1AJUKUdI6b'], 'cache' => ['class' => 'yii\\caching\\FileCache'], 'errorHandler' => ['errorAction' => 'site/error'], 'mailer' => ['class' => 'yii\\swiftmailer\\Mailer', 'viewPath' => '@app/mailer', 'useFileTransport' => false, 'transport' => ['class' => 'Swift_SmtpTransport', 'host' => 'smtp.gmail.com', 'username' => '*****@*****.**', 'password' => '266972319450', 'port' => '587', 'encryption' => 'tls']], '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', 'enableUnconfirmedLogin' => true, 'confirmWithin' => 21600, 'cost' => 12, 'admins' => ['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;
Example #5
0
<?php

use kartik\mpdf\Pdf;
$params = (require __DIR__ . '/params.php');
$config = ['id' => 'basic', 'layout' => 'main', 'language' => 'pt-BR', 'basePath' => dirname(__DIR__), 'bootstrap' => ['log'], 'components' => ['request' => ['cookieValidationKey' => 'App Lanchonete'], 'cache' => ['class' => 'yii\\caching\\FileCache'], 'user' => ['class' => 'amnah\\yii2\\user\\components\\User'], 'errorHandler' => ['errorAction' => 'site/error'], 'mailer' => ['class' => 'yii\\swiftmailer\\Mailer', 'useFileTransport' => true, 'messageConfig' => ['from' => ['*****@*****.**' => 'Admin'], 'charset' => 'UTF-8']], 'log' => ['traceLevel' => YII_DEBUG ? 3 : 0, 'targets' => [['class' => 'yii\\log\\FileTarget', 'levels' => ['error', 'warning']]]], 'db' => require __DIR__ . '/db.php', 'urlManager' => ['enablePrettyUrl' => true, 'showScriptName' => false, 'enableStrictParsing' => false, 'rules' => []], 'authManager' => ['class' => 'yii\\rbac\\DbManager'], 'i18n' => ['translations' => ['app*' => ['class' => 'yii\\i18n\\PhpMessageSource']]], 'pdf' => ['class' => Pdf::classname(), 'format' => Pdf::FORMAT_A4, 'orientation' => Pdf::ORIENT_PORTRAIT, 'destination' => Pdf::DEST_BROWSER]], 'modules' => ['datecontrol' => ['class' => '\\kartik\\datecontrol\\Module'], 'user' => ['class' => 'amnah\\yii2\\user\\Module']], '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;
Example #6
0
<?php

use kartik\mpdf\Pdf;
$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' => 'rest-api', 'basePath' => dirname(__DIR__), 'bootstrap' => ['log'], 'modules' => ['v1' => ['class' => 'rest\\versions\\v1\\RestModule'], 'v2' => ['basePath' => '@rest/modules/v2', 'controllerNamespace' => 'v2\\controllers']], 'aliases' => ['@video_path' => __DIR__ . "/../web/"], 'components' => ['pdf' => ['class' => Pdf::classname(), 'format' => Pdf::FORMAT_A4, 'orientation' => Pdf::ORIENT_PORTRAIT, 'destination' => Pdf::DEST_BROWSER], 'cache' => ['class' => 'yii\\caching\\FileCache'], 'user' => ['identityClass' => 'common\\models\\User', 'enableSession' => false], 'log' => ['targets' => [['class' => 'yii\\log\\FileTarget', 'levels' => ['error', 'warning']]]], 'request' => ['class' => '\\yii\\web\\Request', 'enableCookieValidation' => false, 'parsers' => ['application/json' => 'yii\\web\\JsonParser']], 'urlManager' => ['enablePrettyUrl' => true, 'enableStrictParsing' => true, 'showScriptName' => false, 'rules' => [['class' => 'yii\\rest\\UrlRule', 'controller' => ['v1/classes', 'v1/post', 'v1/comment', 'v2/post', 'v1/gallery', 'v1/blog', 'v1/studio', 'v1/transaction', 'v1/notification', 'v1/review', 'v1/stream']], 'OPTIONS v1/user/<action>' => 'v1/user/options', 'OPTIONS v1/user/<id:\\d+>/messages' => 'v1/user/options', 'OPTIONS v1/transactions/<action>' => 'v1/transaction/options', 'POST v1/user/checktoken' => 'v1/user/checktoken', 'POST v1/user/create' => 'v1/user/create', 'POST v1/user/login' => 'v1/user/login', 'POST v1/user/fbcreate' => 'v1/user/fbcreate', 'POST v1/user/twittercreate' => 'v1/user/twittercreate', 'POST v1/user/fblogin' => 'v1/user/fblogin', 'POST v1/user/twitterlogin' => 'v1/user/twitterlogin', 'POST v1/user/savepersonal' => 'v1/user/savepersonal', 'POST v1/user/<id:\\d+>/messages' => 'v1/user/post-messages', 'POST v1/streams/<id:\\d+>/message' => 'v1/stream/message', 'POST v1/user/watchlist/<id:\\d+>' => 'v1/user/add-watchlist', 'POST v1/user/delwatchlist/<id:\\d+>' => 'v1/user/remove-watchlist', 'POST v1/user/save-color' => 'v1/user/save-color', 'POST v1/user/check-coupon' => 'v1/user/check-coupon', 'POST v1/user/admin-autologin' => 'v1/user/admin-autologin', 'POST v1/user/save-invoice-details' => 'v1/user/save-invoice-details', 'POST v1/classes/cancel/<id:\\d+>' => 'v1/classes/cancel-class', 'POST v1/transactions/dispute' => 'v1/transaction/dispute', 'GET v1/classes/get-earnings' => 'v1/classes/get-earnings', 'GET v1/classes/get-last-class-data' => 'v1/classes/get-last-class-data', 'GET v1/classes/get-week-earning' => 'v1/classes/get-week-earning', 'GET v1/classes/get-earning-pdf' => 'v1/classes/get-earning-pdf', 'GET v1/user/colorp' => 'v1/user/get-color', 'GET v1/user/watchlist' => 'v1/user/get-watchlist', 'GET v1/user/login' => 'v1/user/login', 'GET v1/user/userdata' => 'v1/user/userdata', 'GET v1/user/public/<id:\\d+>' => 'v1/user/public', 'GET v1/user/checkfollow/<id:\\d+>' => 'v1/user/check-follow', 'GET v1/user/followlisttrainer' => 'v1/user/follow-list-trainer', 'GET v1/user/get-user-rating/<id:\\d+>' => 'v1/user/get-user-rating', 'GET v1/user/follow/list' => 'v1/user/follow-list', 'GET v1/user/<id:\\d+>/follow' => 'v1/user/follow', 'GET v1/user/messages/<id:\\d+>' => 'v1/user/get-messages', 'GET v1/user/messages-list' => 'v1/user/get-messages-list', 'GET v1/user/get-status-max' => 'v1/user/get-user-status-max', 'GET v1/user/can-post-msg/<id:\\d+>' => 'v1/user/can-post-msg', 'GET v1/user/sqs' => 'v1/user/sqs', 'GET v1/user/sqs-view' => 'v1/user/sqs-view', 'GET v1/transactions/booked' => 'v1/transaction/booked', 'GET v1/transactions/refund' => 'v1/transaction/refund', 'GET v1/getdata/getcountries' => 'v1/getdata/getcountries', 'GET v1/getdata/getstate' => 'v1/getdata/getstate', 'GET v1/getdata/gettzone' => 'v1/getdata/gettzone', 'GET v1/getdata/getprofession' => 'v1/getdata/getprofession', 'GET v1/getdata/getactivities' => 'v1/getdata/getactivities', 'GET v1/getdata/getactivitiesgroups' => 'v1/getdata/getactivitiesgroups', 'GET v1/getdata/getclientele' => 'v1/getdata/getclientele', 'GET v1/getdata/getcertifications' => 'v1/getdata/getcertifications', 'GET v1/getdata/geteducation' => 'v1/getdata/geteducation', 'GET v1/getdata/checkemail' => 'v1/getdata/checkemail', 'GET v1/getdata/get-dispute-types' => 'v1/getdata/get-dispute-types', 'GET v1/galleries/<id:\\d+>/like' => 'v1/gallery/like', 'GET v1/review/get-statistic/<id:\\d+>' => 'v1/review/get-statistic', 'GET v1/streams/<id:\\d+>/message' => 'v1/stream/get-messages', 'GET v1/streams/test' => 'v1/stream/test', 'PUT v1/classes/<id:[\\d\\-]+>' => 'v1/classes/update', 'OPTIONS v1/classes/<id:[\\d\\-]+>' => 'v1/classes/options', 'OPTIONS v1/video/upload' => 'v1/video/options', 'v1/video/upload' => 'v1/video/upload', 'v1/video/token' => 'v1/video/token']], 'db' => ['class' => 'yii\\db\\Connection', 'dsn' => 'mysql:host=localhost;dbname=gymgecko', 'username' => 'root', 'password' => 'Vermilion', 'charset' => 'utf8']], 'params' => $params];
Example #7
0
File: web.php Project: pumi11/aau
<?php

$params = (require __DIR__ . '/params.php');
use kartik\datecontrol\Module;
use kartik\mpdf\Pdf;
$config = ['id' => 'basic', 'basePath' => dirname(__DIR__), 'bootstrap' => ['log'], 'layout' => 'main', 'defaultRoute' => 'site/index', 'language' => 'ru-RU', 'components' => ['request' => ['cookieValidationKey' => 'bUfkjxxxxfYGFL:"L046'], 'cache' => ['class' => 'yii\\caching\\FileCache'], 'user' => ['identityClass' => 'app\\models\\User', 'enableAutoLogin' => true], 'errorHandler' => ['errorAction' => 'site/error'], 'urlManager' => ['baseUrl' => $baseUrl, 'enablePrettyUrl' => true, 'showScriptName' => false, 'rules' => array('<controller:\\w+>/<id:\\d+>' => '<controller>/view', '<controller:\\w+>/<action:\\w+>' => '<controller>/<action>', '<controller:\\w+>/<action:\\w+>/<id:\\d+>' => '<controller>/<action>')], 'log' => ['targets' => ['file' => ['class' => 'yii\\log\\FileTarget', 'categories' => ['yii\\web\\HttpException:404'], 'levels' => ['error', 'warning'], 'logFile' => '@runtime/logs/Error.log'], 'email' => ['class' => 'yii\\log\\EmailTarget', 'categories' => ['yii\\db\\*'], 'levels' => ['error', 'warning'], 'message' => ['from' => '*****@*****.**', 'to' => '*****@*****.**', 'subject' => 'Site error Spharma'], 'mailer' => YII_DEBUG ? 'mailer' : 'mail']]], 'db' => require __DIR__ . '/db.php', 'i18n' => ['translations' => ['app*' => ['class' => 'yii\\i18n\\PhpMessageSource', 'sourceLanguage' => 'ru', 'fileMap' => ['app' => 'app.php', 'app/error' => 'error.php']]]], 'formatter' => ['dateFormat' => 'dd.MM.yyyy', 'decimalSeparator' => ',', 'thousandSeparator' => ' ', 'currencyCode' => 'RUR', 'locale' => 'ru-RU', 'timeZone' => '+00:00'], 'mail' => ['class' => 'yii\\swiftmailer\\Mailer', 'transport' => ['class' => 'Swift_SmtpTransport', 'host' => 'smtp.yandex.ru', 'username' => '*****@*****.**', 'password' => 'mail352', 'port' => '465', 'encryption' => 'ssl']], 'pdf' => ['class' => Pdf::classname(), 'format' => Pdf::FORMAT_A4, 'orientation' => Pdf::ORIENT_PORTRAIT, 'destination' => Pdf::DEST_BROWSER]], 'params' => $params, 'modules' => ['datecontrol' => ['class' => 'kartik\\datecontrol\\Module', 'displaySettings' => [Module::FORMAT_DATE => 'dd/MM/yyyy', Module::FORMAT_TIME => 'HH:mm:ss a', Module::FORMAT_DATETIME => 'dd-MM-yyyy HH:mm:ss a'], 'saveSettings' => [Module::FORMAT_DATE => 'yyyy-MM-dd', Module::FORMAT_TIME => 'php:H:i:s', Module::FORMAT_DATETIME => 'php:Y-m-d H:i:s'], 'displayTimezone' => 'Europe/Moscow', 'saveTimezone' => 'UTC', 'autoWidget' => true, 'ajaxConversion' => 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:d-M-Y', 'options' => ['class' => 'form-control']]]]]]];
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;
Example #8
0
<?php

use kartik\mpdf\Pdf;
$params = (require __DIR__ . '/params.php');
$config = ['id' => 'basic', 'basePath' => dirname(__DIR__), 'bootstrap' => ['log'], 'modules' => ['gii' => 'yii\\gii\\Module', 'user' => ['class' => 'dektrium\\user\\Module', 'controllerMap' => ['security' => 'app\\controllers\\user\\SecurityController', 'registration' => 'app\\controllers\\user\\RegistrationController', 'settings' => 'app\\controllers\\user\\SettingsController'], 'modelMap' => ['User' => 'app\\models\\User', 'LoginForm' => 'app\\models\\LoginForm', 'SettingsForm' => 'app\\models\\SettingsForm', 'RegistrationForm' => 'app\\models\\RegistrationForm'], 'enableUnconfirmedLogin' => true, 'enableConfirmation' => false, 'rememberFor' => 6000, 'mailer' => ['sender' => '*****@*****.**', 'welcomeSubject' => 'Welcome subject', 'confirmationSubject' => 'Confirmation subject', 'reconfirmationSubject' => 'Email change subject', 'recoverySubject' => 'Recovery subject']]], 'components' => ['view' => ['theme' => ['pathMap' => ['@app/views' => 'themes/nres'], 'baseUrl' => 'themes/nres']], 'request' => ['cookieValidationKey' => 'YGip3RoJQzpW5UvqoaW7w8TvbGDkbAqB'], 'cache' => ['class' => 'yii\\caching\\FileCache'], 'CAPParser' => ['class' => 'app\\components\\CAPParser'], 'CSVParser' => ['class' => 'app\\components\\CSVParser'], 'LSRParser' => ['class' => 'app\\components\\LSRParser'], 'PointInPolygon' => ['class' => 'app\\components\\PointInPolygon'], 'user' => ['identityClass' => 'app\\models\\User', 'enableAutoLogin' => true], 'errorHandler' => ['errorAction' => 'site/error'], 'mailer' => ['class' => 'yii\\swiftmailer\\Mailer', 'useFileTransport' => false], 'log' => ['traceLevel' => YII_DEBUG ? 3 : 0, 'flushInterval' => 1, 'targets' => [['class' => 'yii\\log\\FileTarget', 'levels' => ['error', 'warning']], ['class' => 'yii\\log\\FileTarget', 'levels' => ['info'], 'categories' => ['alerts'], 'logFile' => '@app/runtime/logs/parsealerts.log', 'maxFileSize' => 1024 * 2, 'maxLogFiles' => 20], ['class' => 'yii\\log\\FileTarget', 'levels' => ['info'], 'categories' => ['lsr'], 'logFile' => '@app/runtime/logs/parselsr.log', 'maxFileSize' => 1024 * 2, 'maxLogFiles' => 20], ['class' => 'yii\\log\\FileTarget', 'levels' => ['info'], 'categories' => ['cap'], 'logFile' => '@app/runtime/logs/parsecap.log', 'maxFileSize' => 1024 * 2, 'maxLogFiles' => 20], ['class' => 'yii\\log\\FileTarget', 'logVars' => ['_POST'], 'levels' => ['info'], 'categories' => ['alertExport'], 'logFile' => '@app/runtime/logs/alertExport.log', 'maxFileSize' => 1024 * 2, 'maxLogFiles' => 20]]], 'authManager' => ['class' => 'yii\\rbac\\PhpManager', 'defaultRoles' => ['registered']], 'urlManager' => ['enablePrettyUrl' => false, 'enableStrictParsing' => true, 'showScriptName' => false, 'rules' => []], 'response' => ['formatters' => ['pdf' => ['class' => 'robregonm\\pdf\\PdfResponseFormatter']]], 'pdf' => ['class' => Pdf::classname(), 'format' => Pdf::FORMAT_A4, 'orientation' => Pdf::ORIENT_LANDSCAPE, 'destination' => Pdf::DEST_FILE], '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;
Example #9
0
<?php

$_root_ = dirname(dirname(__DIR__));
require_once $_root_ . '/common/config/dict/dict.php';
require_once $_root_ . '/common/config/dict/dict-applicant.php';
require_once $_root_ . '/common/config/dict/dict-application.php';
require_once $_root_ . '/common/config/dict/dict-task.php';
require_once $_root_ . '/common/config/dict/dict-document.php';
require_once $_root_ . '/common/config/dict/dict-email.php';
require_once $_root_ . '/common/config/dict/dict-active.php';
use kartik\mpdf\Pdf;
return ['vendorPath' => dirname(dirname(__DIR__)) . '/vendor', 'language' => 'en-US', 'timeZone' => 'America/Chicago', 'components' => ['log' => ['traceLevel' => YII_DEBUG ? 3 : 0, 'targets' => [['class' => 'yii\\log\\FileTarget', 'levels' => ['error', 'warning']]]], 'cache' => ['class' => 'yii\\caching\\FileCache'], 'i18n' => ['translations' => ['message' => ['class' => 'yii\\i18n\\PhpMessageSource', 'sourceLanguage' => 'en', 'basePath' => '@common/languages']]], 'pdf' => ['class' => Pdf::classname(), 'mode' => Pdf::MODE_UTF8, 'format' => Pdf::FORMAT_A4, 'orientation' => Pdf::ORIENT_PORTRAIT, 'destination' => Pdf::DEST_BROWSER], 'urlManager' => ['enablePrettyUrl' => true, 'showScriptName' => false, 'rules' => []]], 'modules' => ['gridview' => ['class' => '\\kartik\\grid\\Module', 'downloadAction' => 'gridview/export/download']]];
Example #10
0
<?php

use kartik\mpdf\Pdf;
$params = (require __DIR__ . '/params.php');
$par = "";
if (isset($_REQUEST["type_ticket"])) {
    $par = "&type_ticket=" . $_REQUEST["type_ticket"];
}
$config = ['id' => 'basic', 'basePath' => dirname(__DIR__), 'defaultRoute' => 'online-pay', 'bootstrap' => ['log'], 'components' => ['request' => ['cookieValidationKey' => '123456789'], 'cache' => ['class' => 'yii\\caching\\FileCache'], 'user' => ['identityClass' => 'app\\models\\User', 'enableAutoLogin' => true, 'loginUrl' => 'index.php?r=online-pay/auth' . $par], 'errorHandler' => ['errorAction' => 'site/error'], 'mailer' => ['class' => 'yii\\swiftmailer\\Mailer', 'transport' => ['class' => 'Swift_SmtpTransport', 'host' => 'smtp.yandex.ru', 'username' => '*****@*****.**', 'password' => 'SteKciT2015', 'port' => '465', 'encryption' => 'ssl']], 'log' => ['traceLevel' => YII_DEBUG ? 3 : 0, 'targets' => [['class' => 'yii\\log\\FileTarget', 'levels' => ['error', 'warning']]]], 'db' => require __DIR__ . '/db.php', 'pdf' => ['class' => Pdf::classname(), 'format' => Pdf::FORMAT_A4, 'orientation' => Pdf::ORIENT_PORTRAIT, 'destination' => Pdf::DEST_BROWSER], 'response' => ['formatters' => ['pdf' => ['class' => 'robregonm\\pdf\\PdfResponseFormatter']]]], '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'] = ['class' => 'yii\\gii\\Module', 'allowedIPs' => [$_SERVER['REMOTE_ADDR']]];
}
return $config;
Example #11
0
<?php

use kartik\mpdf\Pdf;
use kartik\datecontrol\Module;
$params = (require __DIR__ . '/params.php');
$config = ['id' => 'basic', 'basePath' => dirname(__DIR__), 'bootstrap' => ['log', 'maintenanceMode'], 'components' => ['request' => ['cookieValidationKey' => 'uxBSKdQ_mME5d2u7TCzWD4XzIPnCfYPC'], 'cache' => ['class' => 'yii\\caching\\FileCache'], 'user' => ['identityClass' => 'app\\models\\User', 'enableAutoLogin' => false], 'errorHandler' => ['errorAction' => 'site/error'], 'mailer' => ['class' => 'yii\\swiftmailer\\Mailer', 'useFileTransport' => true], 'urlManager' => ['class' => 'yii\\web\\UrlManager', 'showScriptName' => true, 'enablePrettyUrl' => true, 'rules' => array('<controller:\\w+>/<id:\\d+>' => '<controller>/view', '<controller:\\w+>/<action:\\w+>/<id:\\d+>' => '<controller>/<action>', '<controller:\\w+>/<action:\\w+>' => '<controller>/<action>')], 'log' => ['traceLevel' => YII_DEBUG ? 3 : 0, 'targets' => [['class' => 'yii\\log\\FileTarget', 'levels' => ['error', 'warning']]]], 'db' => require __DIR__ . '/db.php', 'maintenanceMode' => ['class' => '\\brussens\\maintenance\\MaintenanceMode'], 'pdf' => ['class' => Pdf::classname(), 'format' => Pdf::FORMAT_A4, 'orientation' => Pdf::ORIENT_PORTRAIT, 'destination' => Pdf::DEST_BROWSER, 'cssFile' => '@vendor/kartik-v/yii2-mpdf/assets/kv-mpdf-bootstrap.min.css'], 'formatter' => ['class' => 'yii\\i18n\\formatter', 'thousandSeparator' => ',', 'decimalSeparator' => '.']], 'params' => $params, 'language' => 'es'];
if (YII_ENV_DEV) {
    // configuration adjustments for 'dev' environment
    $config['bootstrap'][] = 'debug';
    $config['modules']['debug'] = 'yii\\debug\\Module';
    $config['bootstrap'][] = 'gii';
    $config['modules']['gii'] = ['class' => 'yii\\gii\\Module', 'allowedIPs' => ['127.0.0.1', '::1', '192.168.1.2', '192.168.1.7']];
    $config['modules']['gridview'] = ['class' => 'kartik\\grid\\Module'];
    $config['modules']['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];
}
return $config;
Example #12
0
<?php

use kartik\datecontrol\Module;
use kartik\mpdf\Pdf;
return ['language' => 'pt-BR', 'vendorPath' => dirname(dirname(__DIR__)) . '/vendor', 'components' => ['cache' => ['class' => 'yii\\caching\\FileCache'], 'authManager' => ['class' => 'yii\\rbac\\DbManager'], 'pdf' => ['class' => Pdf::classname(), 'format' => Pdf::FORMAT_A4, 'orientation' => Pdf::ORIENT_PORTRAIT, 'destination' => Pdf::DEST_BROWSER]], 'modules' => ['datecontrol' => ['class' => '\\kartik\\datecontrol\\Module'], 'reportico' => ['class' => 'reportico\\reportico\\Module', 'controllerMap' => ['reportico' => 'reportico\\reportico\\controllers\\ReporticoController', 'mode' => 'reportico\\reportico\\controllers\\ModeController', 'ajax' => 'reportico\\reportico\\controllers\\AjaxController']], 'admin' => ['class' => 'mdm\\admin\\Module', 'layout' => null, 'controllerMap' => ['assignment' => ['class' => 'mdm\\admin\\controllers\\AssignmentController', 'userClassName' => 'common\\models\\User', 'idField' => 'id', 'usernameField' => 'username']], 'menus' => ['assignment' => ['label' => 'Definir Acesso'], 'route' => null, 'rule' => null, 'permission' => null]]]];
Example #13
0
<?php

use kartik\mpdf\Pdf;
$params = (require __DIR__ . '/params.php');
$db = array_merge(require __DIR__ . '/db.php', require __DIR__ . '/db-local.php');
$config = ['id' => 'basic', 'basePath' => dirname(__DIR__), 'language' => 'pt-BR', 'sourceLanguage' => 'en-US', 'bootstrap' => ['log'], 'components' => ['request' => ['cookieValidationKey' => '1IRZ3YdnnokketMveRJa3VLT-nuoSjkL'], 'cache' => ['class' => 'yii\\caching\\FileCache'], 'user' => ['identityClass' => 'app\\models\\User', 'enableAutoLogin' => true], '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' => $db, 'i18n' => ['translations' => ['app*' => ['class' => 'yii\\i18n\\PhpMessageSource', 'fileMap' => ['app' => 'app.php', 'app\\error' => 'error.php']]]], 'pdf' => ['class' => Pdf::classname(), 'format' => Pdf::FORMAT_A4, 'orientation' => Pdf::ORIENT_PORTRAIT, 'destination' => Pdf::DEST_BROWSER, 'cssFile' => '@vendor/kartik-v/yii2-mpdf/assets/kv-mpdf-bootstrap.min.css', 'cssInlin' => '.kv-heading-1{fornt-size:18px}'], 'utilcomponent' => ['class' => 'app\\components\\UtilComponent'], 'urlManager' => ['enablePrettyUrl' => true, 'showScriptName' => false, 'rules' => ['<controller:\\w+>/<id:\\d+>' => '<controller>/view', '<controller:\\w+>/<action:\\w+>/<id:\\d+>' => '<controller>/<action>', '<controller:\\w+>/<action:\\w+>' => '<controller>/<action>']]], 'params' => $params, 'modules' => ['datecontrol' => ['class' => '\\kartik\\datecontrol\\Module'], 'dynagrid' => ['class' => '\\kartik\\dynagrid\\Module'], 'gridview' => ['class' => 'kartik\\grid\\Module']]];
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;