Last active
August 14, 2017 17:16
-
-
Save baorv/927343d1b31dd66e03d46ccb16dc416b to your computer and use it in GitHub Desktop.
Yii2 snipets
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Setup mailer in Yii2: | |
'mail' => [ | |
'class' => 'yii\swiftmailer\Mailer', | |
'viewPath' => '@backend/mail', | |
'useFileTransport' => false, | |
'transport' => [ | |
'class' => 'Swift_SmtpTransport', | |
'host' => 'smtp.gmail.com', | |
'username' => '[email protected]', | |
'password' => 'password', | |
'port' => '587', | |
'encryption' => 'tls', | |
], | |
] | |
#Change view path map in Yii2: | |
'view' => [ | |
'theme' => [ | |
'pathMap' => [ | |
'@backend/views' => '@webroot/themes/v1/views', | |
] | |
] | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment