Kartik-V DateControl

Hi,

i’m stucked with the datecontrol and datepicker in a ActiveForm.

Following the instructions I get a php error [i]PHP Fatal error: Class ‘kartik\\datecontrol\\Module’ not found in /var/www/html/alex/config/params.php on line 9

[/i]

This is my params.php file


<?php

use kartik\datecontrol\Module;


return [

    'adminEmail' => 'admin@example.com',


      // format settings for displaying each date attribute (ICU format example)

    'dateControlDisplay' => [

        Module::FORMAT_DATE => 'dd-MM-yyyy',

        Module::FORMAT_TIME => 'HH:mm:ss a',

        Module::FORMAT_DATETIME => 'dd-MM-yyyy HH:mm:ss a', 

    ],

    

    // format settings for saving each date attribute (PHP format example)

    'dateControlSave' => [

        Module::FORMAT_DATE => 'php:U', // saves as unix timestamp

        Module::FORMAT_TIME => 'php:H:i:s',

        Module::FORMAT_DATETIME => 'php:Y-m-d H:i:s',

    ]

];



on params.php

Hello, I have the same error here,

i followed the instructions in a youtube video and yeah i have the same error.

Class ‘kartik\datecontrol\Module’ not found in C:\xampp\htdocs\yiicomm\common\config\params.php on line 6

and here is my file:

<?php

use kartik\datecontrol\Module;

return [

// format settings for displaying each date attribute


'dateControlDisplay' =&gt; [


	Module::FORMAT_DATE =&gt; 'M-d-Y',


	Module::FORMAT_TIME =&gt; 'H:i:s A',


	Module::FORMAT_DATETIME =&gt; 'M-d-Y H:i:s A',


],





// format settings for saving each date attribute


'dateControlSave' =&gt; [


	Module::FORMAT_DATE =&gt; 'U',


	Module::FORMAT_TIME =&gt; 'U',


	Module::FORMAT_DATETIME =&gt; 'U',


],


'adminEmail' =&gt; 'admin@example.com',


'supportEmail' =&gt; 'support@example.com',


'user.passwordResetTokenExpire' =&gt; 3600,

];