yes, possible. If you have a look in the documentation you will find that you can tell each input what type it should be. So in your case you would have to give it the option 'type' => 'text' in the options array(). You will probably also have to implement a beforeSave() and afterFind() in your model for converting your date format from ymd to dmy. This is also documented and you can almost copy paste it to your model. http://book.cakephp.org/view/1052/beforeSave http://book.cakephp.org/view/1050/afterFind
Searching the book is always a good idea On 12 Apr., 06:29, jackgoh <[email protected]> wrote: > Hi, > > When we use DateTime as data type, cakephp will auto generate dropdown > lists, but i want it display in textbox. > Because most of the time the date is only display in the textbox as > ReadOnly, but it is editable when User role is Admin or specified. > Another reason is i want to use datepicker, so it is more clean & nice > look. > > Example for the date to display: 20-11-2011 12:12:56 > > Possible? > > I google some solutions, most are using the solution : dropdown lists > + datepicker. :( > > Thanks. -- 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
