I need to insert timestamp in one field of one table of mysql. I need to do directly from controller. I use this to insert the other fields:
Yii::$app->db->createCommand()->insert('marker', [
'field1' => $pathName,
'field2' => $photofilename,
...
..
.
'filed_time' => i need to put actual timestamp here
])->execute();
EDIT: Ok I got it: ‘filed_time’ => date(‘Y-m-d H:i:s’)