Last active
October 1, 2017 23:21
-
-
Save somoza/4f12121e51112343452ddb27158ab275 to your computer and use it in GitHub Desktop.
Symfony 1.4 - DatePicker
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $widgetFormSettings = array( | |
| 'config' => '{}', | |
| 'culture' => 'es', | |
| 'config' => "{firstDay: 1, dayNamesMin: ['Do', 'Lu', 'Ma', 'Mi', 'Ju', 'Vi', 'Sa'], monthNames: ['Enero', 'Febrero', 'Marzo', 'Abril', 'Mayo', 'Junio', 'Julio', 'Agosto', 'Septiembre', 'Octubre', 'Noviembre', 'Diciembre']}", | |
| 'date_widget' => new sfWidgetFormDate(array('format' => '%day%-%month%-%year%', 'years' => array_combine(range(2013, 2020), range(2013, 2020)))), | |
| 'image' => '/images/calendar.png' | |
| ); | |
| $this->widgetSchema['published_at'] = new sfWidgetFormJQueryDate($widgetFormSettings); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment