hi,
i’m new to this field. can i need some suggestion on how to automatically save current date on submit? i mean to save current date when i click the button submit…
this is the generated codings by gii CRUD generator…
<div class="row">
<?php echo $form->labelEx($model,'PROG_SUBMITDATE'); ?>
<?php echo $form->textField($model,'PROG_SUBMITDATE'); ?>
//how to automatically save date?
<?php echo $form->error($model,'PROG_SUBMITDATE'); ?>
</div>
Thank you in advance