getBaseUrl()); return [ 'id' => 'app-frontend', 'basePath' => dirname ( __DIR__ ), 'bootstrap' => [ 'log' ], 'controllerNamespace' => 'frontend\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', 'levels' => [ 'error', 'warning', 'info' ] ] ] ], 'errorHandler' => [ 'errorAction' => 'site/error' ], 'db' => [ 'class' => '\yii\db\Connection', 'dsn' => 'mysql:host=localhost;dbname=ggbn_index', 'username' => 'root', 'password' => '', 'charset' => 'utf8' ], // 'mailer' => [ // 'class' => 'yii\swiftmailer\Mailer', // // send all mails to a file by default. You have to set // // 'useFileTransport' to false and configure a transport // // for the mailer to send real emails. // 'useFileTransport' => true, // 'fileTransportPath' => 'frontend\mail' // ], 'authManager' => [ 'class' => 'yii\rbac\DbManager', ], 'urlManager' => [ 'class' => 'yii\web\UrlManager', 'baseUrl' => $baseUrl, 'enablePrettyUrl' => true, 'showScriptName' => false, 'rules' => array( '/' => '/view', '//' => '/', '/' => '/', ), ] ], 'aliases' => [ '@mailtmp' => "C:\\xampp\\htdocs\\ggbn_new\\common\\mail\\tmp", ], 'params' => $params ];