-
-
Notifications
You must be signed in to change notification settings - Fork 177
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Call to a member function format() on a non-object #99
Comments
It seems the |
I'll try.. |
i followed your instructions... no success.. :-( |
It seems there is a small glitch in datetime formatting. Will record this as a bug and provide a fix. |
Fixed DateControl bug via this commit. Try to update via composer after 30 minutes. |
thanks... |
ok, Call to a member function format() issue is resolved, but now in update scenario widget don't display data value even if it is setted... |
|
Thanks for your help Kartik, since some of the settings of the framework and datecontrol class have changed since I wrote the code, I reread the documentation. If I can not find the problem I will ask again. |
Ok, Kartik, issue resolved... my mistake... data_nascita field was a datetime... |
In the new widget version, I have set the display to be null (instead of showing the wrongly formatted value) - if the format is mismatched or violated. This will be useful for you to debug your formatting errors. |
Hi,
i've updated your extensions and framework to the latest version available with composer.
Now, in a update action i obtained the following error:
PHP Fatal Error – yii\base\ErrorException
Call to a member function format() on a non-object
in C:\wamp\www2\yii2basic\vendor\kartik-v\yii2-datecontrol\datecontrol\DateControl.php
in my view (_form.php):
in my config file (web.php):
where's the problem in my code?
The text was updated successfully, but these errors were encountered: