Skip to content

Instantly share code, notes, and snippets.

View AndrewKotin's full-sized avatar
🏠
Working from home

Andrew Kotin AndrewKotin

🏠
Working from home
View GitHub Profile
<?php
namespace app\controllers;
use app\models\Result;
use app\models\Signup;
use Yii;
use DateTime;
use yii\web\Controller;
use app\models\Login;
<?php
/* @var $this yii\web\View */
use yii\helpers\Html;
use app\assets\AppAsset;
use yii\bootstrap\ActiveForm;
$this->title = 'Тест «Организаторские способности лидера»';
?>
<?php
namespace app\models;
use yii\helpers\ArrayHelper;
use mongosoft\file\UploadBehavior;
use yii\helpers\Url;
class Result extends \yii\db\ActiveRecord
{
public $q1, $q2, $q3, $q4, $q5, $q6, $q7, $q8, $q9, $q10;
public $qq1, $qq2, $qq3, $qq4, $qq5, $qq6, $qq7, $qq8, $qq9, $qq10, $qq11, $qq12, $qq13, $qq14, $qq15;
<?php
namespace app\controllers;
use app\models\Result;
use app\models\Signup;
use Yii;
use yii\web\Controller;
use app\models\Login;
use app\models\User;
@AndrewKotin
AndrewKotin / gist:60fa80161a9f8a6b9dd24ba8af795935
Created August 10, 2016 07:30
Цвет границ (border-left, right…) Функция получает цвет границы и место (сверху, снизу, слева, справа или со всех сторон), куда его применить к объекту.
@mixin border($place, $color, $width) {
@if $place == 'all' {
border: $width solid $color;
} @else {
border-#{$place}: $width solid $color;
}
}