Skip to content

Instantly share code, notes, and snippets.

'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' => false,
'transport' => [
'class' => 'Swift_SmtpTransport',
'host' => 'smtp.gmail.com',
'username' => 'email',
<VirtualHost *:80>
ServerName yii2
DocumentRoot "D:/wamp64/www/yii2/basic/web"
<Directory "D:/wamp64/www/yii2/basic/web">
Options +Indexes +Includes +FollowSymLinks +MultiViews
AllowOverride All
Require local
</Directory>
</VirtualHost>
$('a[href^="#"]').on('click', function(e){
e.preventDefault();
var href = $(this).attr('href');
if(href.length > 1){
$('html,body').animate({scrollTop:$(this.hash).offset().top}, 800,
function(){
//window.location.hash = href;
});
};
});
// for IE
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none)
.nameBox__imgWrap
border-radius: 50%
// for Edge
@supports (-ms-ime-align:auto)
.nameBox__imgWrap
border-radius: 50%
//CUSTOM SELECT
$('select').each(function(){
var $this = $(this), numberOfOptions = $(this).children('option').length;
$this.addClass('select-hidden');
$this.wrap('<div class="select"></div>');
$this.after('<div class="select-styled"></div>');
var $styledSelect = $this.next('div.select-styled');