I already answered your question Toby.
The datepicker class is added to the date input element. That is all
that cake has to do with it. After that it is purely javascript. The
javascript is then using the classname to attach a behavior to the
element. The javascript is not a part of the CakePHP core - there are
dozens you can choose from - learn to use google.


On Sep 23, 11:03 am, mark_story <[EMAIL PROTECTED]> wrote:
> The datepicker class just adds a CSS class called datepicker.  Look at
> the OvenCMS javascript to see how the datepicker is being added in.
>
> -Mark
>
> On Sep 23, 11:27 am, toby78 <[EMAIL PROTECTED]> wrote:
>
> > The OvenCMS uses this line for a calendar popup:
>
> > $form->input("Lawsuite/date_end", array("label" => false, "type" =>
> > "text", "class" => "datepicker"));
>
> > When I copy this into another project it does not work.
>
> > Where is this "plugin" located or where is it supposed to be ?
>
> > And how come a plugin can "overwrite" things like a text field if the
> > database field is a date field?
>
> > I would understand it if it was something like:
>
> > $form->input("Lawsuite/date_end", array("type" => "mycalendar");
>
> > and there was a directory called plugins/mycalendar with all the
> > necessary code.....
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to