So I have already created a way to add testimonials and there is a section of the form to add a date of the testimonial. In my database table it is set up as a date type. On my form I only have:
<?= $this->Form->input('testimony_date'); ?>
In my table file in the model there is a validation:
$validator
->add('testimony_date', 'valid', ['rule' => 'date'])
->requirePresence('testimony_date', 'create')
->notEmpty('testimony_date');
I mimicked this same procedure to add a presentation_date to a different form that goes to a different controller. The date drop downs were added to the testimonial add form automatically. The presentation form is not adding the dates automatically. I can get the drop downs if I make the form input like this:
<?= $this->Form->date('presentation_date'); ?>
The date drop downs for the testimonial form are filled out with a default of today's date. The presentation form doesn't have default values or a label when I make it $this->Form->date. My question is, why aren't drop downs automatically added like in the testimonial situation?
Is there something else I am suppose to add somewhere?
The testimonial files were created with the bake feature and the presentation files were created manually. I checked to make sure the form variable was spelled correctly.
It looks like everything was fine, but for some reason the cache on my server was messing with how things were displayed. Once I cleared the tmp model folder, it fixed the issue. Like I said everything was mimicked (entity, table, controller, template/views). Anyway thank you all for your help.