因此,在 CakePHP 3 中,要得到这样的结果:我会这样做: <?= $this->Form->date('dob', [ 'templates' => ['inputContainer' => '{{content}}'], 'label' => false, 'class' => 'form-control', 'minYear' => 1940, 'maxYear' => date('Y') - 5, 'empty' => [ 'year' => "Year", // The year select control has no option for empty value 'month' => 'Month', // The month select control does, though 'day' => 'Day', // The month select control does, though ], ]) ?>然而,如果我尝试在 Cakephp 4 上做同样的事情,我会得到这个请问如何在 Cakephp 4 上实现相同的 Cakephp 3 输出
添加回答
举报
0/150
提交
取消