Код: Выделить всё
debug(Yii::$app->request->post());
Код: Выделить всё
return debug(Yii::$app->request->post());
Код: Выделить всё
debug(Yii::$app->request->post());
Код: Выделить всё
return debug(Yii::$app->request->post());
Спасибо, помогло.shnir писал(а): ↑2018.02.22, 16:13 вместоКод: Выделить всё
debug(Yii::$app->request->post());
Код: Выделить всё
return debug(Yii::$app->request->post());
Код: Выделить всё
\Yii::$app->response->format = \yii\web\Response::FORMAT_JSON;
return Doctor::find()->where(['id' =>$id])->asArray()->all();
А к чему это? Сейчас ведь смыслshnir писал(а): ↑2018.02.22, 16:39Код: Выделить всё
\Yii::$app->response->format = \yii\web\Response::FORMAT_JSON; return Doctor::find()->where(['id' =>$id])->asArray()->all();
Код: Выделить всё
$carddoc = Yii::$app->request->post('a');
$card = Cards::find()->where(['doctor_id' =>$id],['data' =>$carddoc)->asArray()->all();
return $сard;