Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- 'modules' => [
- 'datecontrol' => [
- 'class' => '\kartik\datecontrol\Module',
- // format settings for displaying each date attribute (ICU format example)
- 'displaySettings' => [
- Module::FORMAT_DATE => 'dd/MM/yyyy',
- Module::FORMAT_TIME => 'HH:mm',
- Module::FORMAT_DATETIME => 'dd/MM/yyyy HH:mm',
- ],
- // format settings for saving each date attribute (PHP format example)
- 'saveSettings' => [
- Module::FORMAT_DATE => 'php:Y-m-d',
- Module::FORMAT_TIME => 'php:H:i',
- Module::FORMAT_DATETIME => 'php:Y-m-d H:i:s',
- ],
- 'displayTimezone' => 'America/Sao_Paulo',
- 'saveTimezone' => 'America/Sao_Paulo',
- 'autoWidget' => true,
- 'ajaxConversion' => true,
- // default settings for each widget from kartik\widgets used when autoWidget is true
- 'autoWidgetSettings' => [
- Module::FORMAT_DATE => [
- 'type' => 3,
- 'pluginOptions' => [
- 'language' => 'pt-BR',
- 'autoclose' => true,
- 'todayHighlight' => true,
- 'todayBtn' => true,
- ]
- ],
- Module::FORMAT_DATETIME => [
- 'type' => 3,
- 'pluginOptions' => [
- 'language' => 'pt-BR',
- 'minuteStep' => 1,
- 'todayBtn' => true,
- 'pickerPosition' => "top-left"
- ]
- ], // setup if needed
- Module::FORMAT_TIME => [
- 'class' => 'yii\jui\TimePicker', // example
- 'pluginOptions' => [
- 'language' => 'pt-BR',
- 'autoclose' => true,
- 'minuteStep' => 1,
- 'showSeconds' => false,
- 'showMeridian' => false
- ]
- ], // setup if needed
- ]
- ],
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement