Skip to content

Instantly share code, notes, and snippets.

View andku83's full-sized avatar

Andrey Kushnarev andku83

  • Ukraine, Kharkiv
View GitHub Profile
<?php
namespace frontend\modules\user\controllers;
use common\base\MultiModel;
use frontend\models\search\OrderSearch;
use frontend\modules\user\models\AccountForm;
use frontend\modules\user\models\SignupOauthForm;
use Yii;
use yii\authclient\clients\Facebook;
<?php
namespace frontend\models;
use borales\extensions\phoneInput\PhoneInputValidator;
use common\components\apex\Apex;
use common\models\Client;
use common\models\query\ClientQuery;
use common\models\Sms;
use Yii;
<?php
namespace backend\models;
use common\models\User;
use common\models\UserProfile;
use Yii;
use yii\base\Exception;
use yii\base\Model;
<?php
namespace Admin\Model;
use Rush\Mapper\AbstractMapper;
/**
* Class Dictionary
*
* @package Admin\Model
*/
<?php
namespace common\models\query;
use common\models\Category;
use yii\db\ActiveQuery;
/**
* This is the ActiveQuery class for [[Category]].
*
* @see Category
<?php
namespace common\widgets;
use Yii;
use yii\helpers\Html;
use yii\helpers\FormatConverter;
use yii\base\InvalidParamException;
/**
* Extended DatePicker, allows to set different formats for sending and displaying value
*/
class DatePicker extends \kartik\date\DatePicker
@andku83
andku83 / composer.json
Created November 14, 2017 14:28
composer.json
{
"name": "trntv/yii2-starter-kit",
"description": "Yii2 Starter Kit Application Template",
"keywords": [
"yii2",
"framework",
"start",
"cms",
"application template",
"yii2 advanced"
SELECT
product.id AS id,
product.image AS image,
product_additional_val.count_color AS count_color,
product_additional_val.url AS url
FROM
product
INNER JOIN (
SELECT
COUNT(product_additional.cid) AS count_color,
<?php
/**
* @license http://www.yiiframework.com/license/
*/
namespace frontend\widgets;
/**
* The ListView widget is used to display data from data
* provider. Each data model is rendered using the view
<?php
namespace backend\controllers;
use backend\models\ExcelExportForm;
use backend\models\ExcelImportForm;
use backend\models\File;
use backend\models\search\ProductSearch;
use common\models\Product;
use moonland\phpexcel\Excel;