Yii Framework Forum: Yii2 Datecontrol - Date And Time Not Being Saved - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Yii2 Datecontrol - Date And Time Not Being Saved Rate Topic: -----

#1 User is online   sifa786 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 40
  • Joined: 12-February 13

Posted 23 June 2014 - 07:13 AM

I am using the yii2-grid with the date and time controls and when the edit form is loaded, or on change of the date and time fields, the callindex.php?r=datecontrol%2Fparse%2Fconvert gives an error: Bad Request (#400): Unable to verify your data submission.

Any ideas as to why?
0

#2 User is offline   Kartik V 

  • Master Member
  • PipPipPipPip
  • Yii
  • Group: Members
  • Posts: 607
  • Joined: 29-August 12

Posted 23 June 2014 - 01:02 PM

View Postsifa786, on 23 June 2014 - 07:13 AM, said:

I am using the yii2-grid with the date and time controls and when the edit form is loaded, or on change of the date and time fields, the callindex.php?r=datecontrol%2Fparse%2Fconvert gives an error: Bad Request (#400): Unable to verify your data submission.

Any ideas as to why?

You can post your issues in the extension project page. This is related to this issue.

There is been some major change to the Yii2 core framework itself on automatic CSRF meta tag generation. This feature has been removed from View class for Yii 2.

You need to NOW add the following to your view layout files head section (that should resolve your issue):
<?= Html::csrfMetaTags() ?>

0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users