-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Mihai RUSOAIE escribió: > Hello all! > > Can I use sfWidgetFormJQueryDate from sfFormExtraPlugin directly in the > template? And maybe disable clicking on some of the days? > > I need a date picker, but restricted on some days. Is that possible with > some plugin/widget, or I have to write one myself? > > Thank you, > > Mihai Rusoaie > e-Business Consultant > Mobile: +40 72 RUSOAIE > Web: http://mihai.rusoaie.com > > > >
You can always use widgets in templates: [php] // In your template // $options is the array of options // and $attributes is the array of attributes, // just like inside your forms. $widget = new sfWidgetFormJQueryDate($options, $attributes); // $name is the desired name for the field, // $default_value is the default value to use for the field. echo $widget->render($name, $default_value); [/php] Best regards, - -- José Nahuel Cuesta Luengo Desarrollo | CeSPI - UNLP <ncue...@cespi.unlp.edu.ar> -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkqX1z4ACgkQ2jTpOyePgAHUmQCfdoC9XmAleMp3dqXoQC2BIgIY j/UAn2Bx4SL/Wyz0m+bDaDkTIZTZwVyD =kjQ4 -----END PGP SIGNATURE----- --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@googlegroups.com To unsubscribe from this group, send email to symfony-users+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---