getBaseUrl () ); return [ 'id' => 'app-frontend', 'basePath' => dirname ( __DIR__ ), 'bootstrap' => [ 'log' ], 'controllerNamespace' => 'ggbnportal\controllers', 'components' => [ 'request' => [ 'baseUrl' => $baseUrl ], 'user' => [ 'identityClass' => 'common\models\User', 'enableAutoLogin' => true, 'authTimeout' => '1800', 'autoRenewCookie'=> true ], 'log' => [ 'traceLevel' => YII_DEBUG ? 3 : 0, 'targets' => [ [ 'class' => 'yii\log\FileTarget', 'logVars' => ['_SERVER'], 'levels' => [ 'error', 'warning', 'info' ] ] ] ], 'errorHandler' => [ 'errorAction' => 'site/error' ], 'db' => [ 'class' => '\yii\db\Connection', 'dsn' => 'mysql:host=130.133.70.51;dbname=ggbn_index', 'username' => 'dnabank', 'password' => '', 'charset' => 'utf8' ], 'ncd' => [ 'class' => '\yii\db\Connection', 'dsn' => 'mysql:host=130.133.70.51;dbname=ncd', 'username' => 'dnabank', 'password' => '', 'charset' => 'utf8' ], 'authManager' => [ 'class' => 'yii\rbac\DbManager', ], 'urlManager' => [ 'class' => 'yii\web\UrlManager', 'baseUrl' => $baseUrl, 'enablePrettyUrl' => true, 'showScriptName' => false, 'rules' => array ( '/' => '/view', '//' => '/', '/' => '/' ) ], 'mailer' => [ 'class' => 'yii\swiftmailer\Mailer', 'useFileTransport' => false, 'transport' => [ 'class' => 'Swift_MailTransport', // 'class' => 'Swift_SmtpTransport', // 'host' => '130.133.170.201', // 'port' => '25', ], ], ], 'aliases' => [ //'@mailtmp' => "C:\\xampp\\htdocs\\ggbn_new\\common\\mail\\tmp", '@mailtmp' => "/var/www/portals/common/mail/tmp", ], 'params' => $params ];