{"action":"created","issue":{"url":"https://api.github.com/repos/kartik-v/yii2-datecontrol/issues/46","repository_url":"https://api.github.com/repos/kartik-v/yii2-datecontrol","labels_url":"https://api.github.com/repos/kartik-v/yii2-datecontrol/issues/46/labels{/name}","comments_url":"https://api.github.com/repos/kartik-v/yii2-datecontrol/issues/46/comments","events_url":"https://api.github.com/repos/kartik-v/yii2-datecontrol/issues/46/events","html_url":"https://github.com/kartik-v/yii2-datecontrol/issues/46","id":57866228,"number":46,"title":"Invalid Configuration","user":{"login":"sredXNY","id":4504205,"avatar_url":"https://avatars.githubusercontent.com/u/4504205?v=3","gravatar_id":"","url":"https://api.github.com/users/sredXNY","html_url":"https://github.com/sredXNY","followers_url":"https://api.github.com/users/sredXNY/followers","following_url":"https://api.github.com/users/sredXNY/following{/other_user}","gists_url":"https://api.github.com/users/sredXNY/gists{/gist_id}","starred_url":"https://api.github.com/users/sredXNY/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sredXNY/subscriptions","organizations_url":"https://api.github.com/users/sredXNY/orgs","repos_url":"https://api.github.com/users/sredXNY/repos","events_url":"https://api.github.com/users/sredXNY/events{/privacy}","received_events_url":"https://api.github.com/users/sredXNY/received_events","type":"User","site_admin":false},"labels":[{"id":93619445,"url":"https://api.github.com/repos/kartik-v/yii2-datecontrol/labels/question","name":"question","color":"cc317c","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2015-02-16T23:57:02Z","updated_at":"2016-11-11T23:50:25Z","closed_at":"2015-02-17T07:50:41Z","body":"Hi everyone, I'm using datecontrol Module, I configured it in console.php just like is defined in https://github.com/kartik-v/yii2-datecontrol#module\n In the form I have this:\n$form->field($model, 'Fecha_fin')->widget(DateControl::classname(), [\n                'type'=>DateControl::FORMAT_DATE,\n                'ajaxConversion'=>false,\n                'options' => [\n                    'pluginOptions' => [\n                        'autoclose' => true\n                    ]\n                ]\n        ]);\n\nbut when I run it I have the next error: \"The 'datecontrol' module MUST be setup in your Yii configuration file and must be an instance of 'kartik\\datecontrol\\Module'.\"\nIn what 'm failing?thanks!\n"},"comment":{"url":"https://api.github.com/repos/kartik-v/yii2-datecontrol/issues/comments/260082276","html_url":"https://github.com/kartik-v/yii2-datecontrol/issues/46#issuecomment-260082276","issue_url":"https://api.github.com/repos/kartik-v/yii2-datecontrol/issues/46","id":260082276,"user":{"login":"kmolina09","id":23043701,"avatar_url":"https://avatars.githubusercontent.com/u/23043701?v=3","gravatar_id":"","url":"https://api.github.com/users/kmolina09","html_url":"https://github.com/kmolina09","followers_url":"https://api.github.com/users/kmolina09/followers","following_url":"https://api.github.com/users/kmolina09/following{/other_user}","gists_url":"https://api.github.com/users/kmolina09/gists{/gist_id}","starred_url":"https://api.github.com/users/kmolina09/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kmolina09/subscriptions","organizations_url":"https://api.github.com/users/kmolina09/orgs","repos_url":"https://api.github.com/users/kmolina09/repos","events_url":"https://api.github.com/users/kmolina09/events{/privacy}","received_events_url":"https://api.github.com/users/kmolina09/received_events","type":"User","site_admin":false},"created_at":"2016-11-11T23:50:25Z","updated_at":"2016-11-11T23:50:25Z","body":"how do I have to configure the module in yii2 advanced\r\nI have this in my _form.php\r\nuse kartik\\datecontrol\\DateControl;\r\nuse kartik\\datecontrol\\Module;\r\n\r\n\r\n<?= $form->field($model, 'fecha_resolucion')->widget(DateControl::classname(), [\r\n        'displayFormat' => 'dd/MM/yyyy',\r\n        'autoWidget' => false\r\n    ]);\r\n    ?>\r\n\r\nand when I run my controller I get the following error \r\nInvalid Configuration – yii\\base\\InvalidConfigException\r\n\r\nThe 'datecontrol' module MUST be setup in your Yii configuration file and must be an instance of 'kartik\\datecontrol\\Module'.\r\n\r\nwhere is where I have to put this\r\n\r\nThe extension has been created as a module to enable access to global settings for your application. In addition, it allows you to read and format date times between client and server using PHP DateTime object. The DateControl widget uses ajax processing to convert display (view) format to model (save) format.\r\n\r\nuse kartik\\datecontrol\\Module;\r\n'modules' => [\r\n'datecontrol' =>  [\r\n        'class' => 'kartik\\datecontrol\\Module',\r\n\r\n        // format settings for displaying each date attribute (ICU format example)\r\n        'displaySettings' => [\r\n            Module::FORMAT_DATE => 'dd-MM-yyyy',\r\n            Module::FORMAT_TIME => 'HH:mm:ss a',\r\n            Module::FORMAT_DATETIME => 'dd-MM-yyyy HH:mm:ss a', \r\n        ],\r\n\r\ndo I have to put it in \r\nmysite\\backend\\config\\main.php  ?\r\nor \r\nmysite\\common\\config\\main.pgp or params.php ??\r\n\r\n\r\nThanks in advance!"}}
{"actor":{"display_login":"kmolina09"}}