Empfehlungen: Erweiterte Suche
echo $this->Form->label('booking_date');
echo $this->Form->year('booking_date',$minYear,$maxYear,null,array('empty'=>false));
echo $this->Form->month('booking_date',...
echo $this->Form->day(...
echo $this->Form->hour(...
echo $this->Form->minute(...sebbo.cake hat geschrieben:Naja, aber kann ich denn das eine Zeitfeld aus dem Model in 2 Formularfelder splitten?
echo $this->Form->create('Entry');
echo $this->Form->input('created', array('dateFormat'=>'DMY','timeFormat'=>24));
echo $this->Form->end(__('Select',true));
echo $this->Form->create('Entry');
echo $this->Form->label('created');
echo $this->Form->day('created',null,array('empty'=>false));
echo $this->Form->month('created',null,array('empty'=>false));
echo $this->Form->year('created',null,null,null,array('empty'=>false));
$options=array();
for($i=6;$i<21;$i++){
$options[$i]=$i;
}
echo $this->Form->select('created.hour',$options,null,array('empty'=>false));
echo $this->Form->minute('created',null,array('empty'=>false,'interval'=>15));
echo $this->Form->end(__('Select',true));
echo $this->Form->create('Entry');
echo $this->Form->input('created', array('dateFormat'=>'DMY','timeFormat'=>24,'minHour'=>6,'maxHour'=>20));
echo $this->Form->end(__('Select',true));
Mitglieder in diesem Forum: 0 Mitglieder und 1 Gast