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
body{ | |
text-size-adjust: none; | |
-webkit-text-size-adjust: none; | |
-moz-text-size-adjust: none; | |
-ms-text-size-adjust: none; | |
} |
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
.noselect { | |
-webkit-touch-callout: none; /* iOS Safari */ | |
-webkit-user-select: none; /* Chrome/Safari/Opera */ | |
-khtml-user-select: none; /* Konqueror */ | |
-moz-user-select: none; /* Firefox */ | |
-ms-user-select: none; /* Internet Explorer/Edge */ | |
user-select: none; /* Non-prefixed version, currently | |
not supported by any browser */ | |
} |
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
git rm --cached <file> - Delete file from git and stop tracking. This command also deletes <file> in remote repository | |
git rm -r --cached <folder> - The same thing but works recursively. | |
git update-index --assume-unchanged <file> - Use this command to prevent git from detecting changes in <file> |
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
composer global require fxp/composer-asset-plugin --no-plugins |
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
composer update new/package |
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
Do | |
$model->save(); | |
before | |
$model->file->saveAs() |
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
If any javaScript conflict occurs while using Yii2 ActiveForm widget use this config | |
ActiveForm::begin([ | |
'enableClientScript' => false | |
]) |
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
@mixin border-radius-partial($radius, $part:null) { | |
@if ($part) { | |
-webkit-border-#{$part}-radius: $radius; | |
-moz-border-#{$part}-radius: $radius; | |
-ms-border-#{$part}-radius: $radius; | |
border-#{$part}-radius: $radius; | |
} | |
@else { | |
-webkit-border-radius: $radius; | |
-moz-border-radius: $radius; |
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
.clearfix::before, .clearfix::after { | |
content: ""; | |
display: table; | |
} | |
.clearfix::after { | |
clear: both; | |
} | |
.clearfix { |
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
// in controller | |
Yii::$app->view->params['message_to_layout'] = 'This message will be shown in layout'; | |
// in layout (and in any view!) | |
<?=$this->params['message_to_layout']?> |
OlderNewer