Ich hoffe ihr könnt mir helfen.
Gruß aus m Schwarzwald
HtmlHelper::dateTimeOptionTag ( $tagName,
$ dateFormat = 'DMY',
$ timeFormat = '12',
$ selected = null,
$ selectAttr = null,
$ optionAttr = null,
$ showEmpty = true
)
im controller
this->set('now_val', date(Y-m-d H:M:S') );
dann im view
echo dateTimeOption('myDate, DMY,24, $now_val );
es im controller zu machen ist eigentlich sauberer, zumal man dann dem
now_val auch dynamisch andere werte zuweisen kann.
oder direkt im view:
echo dateTimeOption('myDate, DMY,24,date(Y-m-d H:M:S') );