Commit 6833078d authored by Shakarim Sapa's avatar Shakarim Sapa

- Тест

parent 543e4db6
......@@ -36,17 +36,16 @@ class DefaultController extends BaseController
* @throws \yii\web\NotFoundHttpException
*/
public function actionAdd($email){
Yii::$app->response->format = Response::FORMAT_JSON;
// Получили дату
$date = new \DateTime();
// Создали модель
$model = new CasesBids();
// Результирующий массив
$result = [
'result' => false
];
// Получили и переопределили данные из формы
if(Yii::$app->request->isAjax) {
// Создали модель
$model = new CasesBids();
// Получили дату
$date = new \DateTime();
// Переопределили дату
$model->date = $date->format('Y-m-d H:i:s');
$model->email = $email;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment