OK, I'll admit my noobishness - can you add any HTML attribute to the options array, and cake just adds it to the tag? For instance, if you add 'width' => '50' it will set width="50" in the input tag? If so, that rocks, and will keep me from asking questions like this one again.
Thanks! Frank On Feb 16, 5:31 pm, FranktheTank <frankbirchstu...@gmail.com> wrote: > I do realize that the disabled field won't get posted, and I don't > want it to - it's the automatically generated "Created" date, and I > just wanted to show what that date is, and it's convenient to do so > right on the form. > > So if I were to use the 'readonly' option, the data appears on the > form and posts with the form, but it's not editable in the form? > That's an interesting option to have. > > Thanks for the info - very helpful. > > Frank > > On Feb 16, 4:04 pm, Me <keithnorris.spect...@gmail.com> wrote: > > > Note that using "disabled" has the additional consequence that the > > "disabled" data you show won't POST through on the form, which may be > > OK depending on your situation. If you don't expect it, you can have > > phantom data loss.... > > > If you want non-editable data but need it to POST, use array > > ( 'readonly' => 'readonly'). You can use css to "gray it out" if you > > want a disabled appearance. --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---