Automatic Assign Current Date and Time after Create [ Yii2 Framework]

Yii2 Framework CRUD


In this form, we don't put a department created date field but actually we already create one in database table of department.




phpMyAdmin

In the database the structure of department_created_date is type of DATATIME .




The time is automatically inserted by timer, not manually by user .

This is the source code .

Tiada ulasan

Tiada ulasan :

Catat Ulasan