Answer the question
In order to leave comments, you need to log in
How to pass data from active form to sql query?
Suppose there is a sql query
Yii::$app->db->createCommand('SELECT ... WHERE date BETWEEN '2017-05-31 00:00:00' AND '2017-06-01 00:00:00'')->queryAll();
Answer the question
In order to leave comments, you need to log in
Like this: , and after the request
['date_from' => $date_from, 'date_to' => $date_to]
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question