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=IP;dbname=DBNAME', 'username' => 'USER', 'password' => 'PASS', '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' => true ], ], 'aliases' => [ //'@mailtmp' => "C:\\xampp\\htdocs\\wfo\\common\\mail\\tmp", '@mailtmp' => "/var/www/advanced/common/mail/tmp", ], 'params' => $params ];