You want today’s date or the word “today” get displayed?.
The following will definitely displays the date in dateform.
public function actionCreate() {
$model = new AccountingEntry;
$model->entry_date = date('Y-m-d'); //this format ensures that it is compatible with database storage.
[...]
}
You want the word "today" get displayed then placeholder is an option.
Then in controller, we have to comment out our date assignment.
public function actionCreate() {
$model = new AccountingEntry;
//$model->entry_date = date('Y-m-d');
[...]
}