eeVlaDatePickerPlugin - 0.1.6

Vista-like Ajax Date Picker widget

You are currently browsing
the website for symfony 1

Visit the Symfony2 website


« Back to the Plugins Home

Signin


Forgot your password?
Create an account

Tools

Stats

advanced search
Information Readme Releases Changelog Contribute
Show source

eeVlaDatePickerPlugin

Description

This plugins eases the use of the rich Javascript Vista-Like Ajax (Vla) Date Picker widget in Symfony.

This plugin uses the clientside-only version of the widget. That means that the contents of the widget are handled by Javascript on the client and not by PHP or whatever.

Installation

$ symfony plugin:install eeVlaDatePickerPlugin
$ symfony cache:clear

Usage

Example:

$this->widgetSchema['date'] = new eeWidgetFormDateVlaDatePicker();

You can use a standard sfValidatorDate to specify the string format:

$this->validatorSchema['date']->setOption(
    'date_format',
    '@(?P<day>\d{1,2}).(?P<month>\d{1,2}).(?P<year>\d{4})@'
);

i18n

Internalisation is possible but not supported by original widget (please tell me if I am wrong).

French translation is already done, and you can use it as an example if you want to add another language.

Contact

If you have any questions feel free to contact me (see the Plugin Information tab).