in your view file... you should have something that looks like this:
$this->Form->input('savedDate');

change it to:
$this->Form->input('saveDate', array('type'=>'text'));
OR
$this->Form->text('saveDate');

that should display a textbox (inplace of multiple dropdown menus for
the date).

if it is not automatically populating the fields, then do the
following:


$this->Form->input('saveDate', array('type'=>'text', 'value'=>
$model['saveDate']));
OR
$this->Form->text('saveDate', array('value'=>$model['saveDate']));
(the 'value' key in the options array will force that value to be in
the HTML element)


For more details, reference the "Form Helper" section in the CookBook
(http://book.cakephp.org/view/1383/Form)


On Apr 14, 5:52 am, jackgoh <[email protected]> wrote:
> Hi,
>
> Then, how can i assign the Datetime value which is from database into
> the textbox at Edit form?
>
> On Apr 14, 5:03 pm, Jens Dittrich <[email protected]> wrote:
>
>
>
>
>
>
>
> > no, afertFind() ist a callback in the model. This will be called
> > automatically whenever you did a find operation on the model. Check
> > the book about the 
> > callbacks:http://book.cakephp.org/view/1048/Callback-Methods
>
> > On 14 Apr., 09:55, jackgoh <[email protected]> wrote:
>
> > > So, when i m on the Edit form,i have to use function afterFind() in my
> > > model ?- Hide quoted text -
>
> > - Show quoted text -

-- 
Our newest site for the community: CakePHP Video Tutorials 
http://tv.cakephp.org 
Check out the new CakePHP Questions site http://ask.cakephp.org and help others 
with their CakePHP related questions.


To unsubscribe from this group, send email to
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to