getBaseUrl () ); return [ 'id' => 'app-worldfloraonline', 'basePath' => dirname ( __DIR__ ), 'bootstrap' => [ 'log' ], 'controllerNamespace' => 'worldfloraonline\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=130.133.70.51;dbname=worldfloraonline', '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\\wfo\\common\\mail\\tmp", '@mailtmp' => "/var/www/portals/common/mail/tmp", ], 'params' => $params ];