Take a look at the automatic form elements in the CakePHP book at:
http://book.cakephp.org/#!/view/1390/Automagic-Form-Elements
It states that for a datetime column, as you have, the resulting form
field will contain:
day, month, year, hour, minute, and meridian selects
So it will not give you an
Hello Community,
Can any one suggest any thing on this request?
Regards
Tapan Thapa
India
On Sat, Feb 19, 2011 at 11:06 AM, Tapan Kumar Thapa <
tapan.th...@hindustantimes.com> wrote:
> Hello Community,
>
> I am using below code in my view to generate start date and end date. My
> view is showin
Hello Community,
I am using below code in my view to generate start date and end date. My
view is showing start and end date perfectly but without seconds value to
select.
Can you please suggest something to display and chose seconds as well?
Form->create(array('controller' => 'users', 'action'
ok, i mistakenly used DATE type instead of DATETIME. now the pre-
selected value is displayed.
i also discover that, to show the empty option (but not pre-selected),
the corrent parameter is "empty" and not "showEmpty"...
echo $form->input('validity_date_from', array(
'type'=>'datetime',
hi all.
i'm dealing with dates.
in my form i would like to edit a DATE database field with the chance
to save a null (or empty) value and, of course, the current option, if
present, selected.
this code does not display a label and i'm not able to pre-select the
current database value:
echo $form