Код: Выделить всё
if($action->id='create'){
Код: Выделить всё
if($action->id='create'){
Код: Выделить всё
->select(['`news`.*', '`category`.`cat_name`', '`user`.`username`'])
Код: Выделить всё
$query->addOptions(['max_matches' => 10000])
Код: Выделить всё
$results = $query->showMeta(true)->limit(0)->search();
$count = (int)ArrayHelper::getValue($results, 'meta.total_found', 0);
Код: Выделить всё
$cnt = Sertificate::find()->where(['partner_id' => \Yii::$app->user->identity->id])->groupBy('partner_id')->select(['*', 'SUM(price) AS price_sum'])->asArray()->all();
Код: Выделить всё
new \yii\db\Expression('IF(partner_id = '.$this->partner_id.', 1, 0) AS `current_partner`'),
Код: Выделить всё
public $foto;
Код: Выделить всё
rt_field = product_id
Код: Выделить всё
rt_attr_string = product_id
Код: Выделить всё
class AppAsset extends AssetBundle
{
...
public $jsOptions = ['position' => \yii\web\View::POS_HEAD];
}
Код: Выделить всё
['table2.field' => new Expression('table1.field')],