D
D
Daniil Sidorov2018-05-12 21:55:54
Yii
Daniil Sidorov, 2018-05-12 21:55:54

Why is DateTimePicker not working in yii2?

Hello, I connect DateTimePicker via composer ( github ).
Further in the form:

<?= DateTimePicker::widget([
        'name' => 'start',
        'options' => ['placeholder' => 'выбери старт время пацан...'],
        'convertFormat' => true,
        'pluginOptions' => [
            'format' => 'dd.MM.yyyy hh:i:s',
            'startDate' => '01-Mar-2014 12:00 AM',
            'todayHighlight' => true
        ]
    ]); ?>

As a result, I get the following:
fc129131db4e5cf501a9d707fc50bfa0.pngWhen pressed, a window with a date and time selection does not appear. You can only enter numbers manually.
What could be the problem? Thank you.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Artem Spiridonov, 2018-05-12
@customtema

https://developer.mozilla.org/ru/docs/Web/HTML/Ele... possible without YII

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question