2amigos / yii2-grid-view-library

Highly enhanced GridView widget and grid components for Yii2
https://2amigos.us
Other
57 stars 16 forks source link

Fix for CSRF #1

Closed newerton closed 10 years ago

newerton commented 10 years ago

Was having problems updating some items in the GridView.

EditableColumn.php - line 143

$js[] = ";jQuery('$selector').editable({params: function(params) { params._csrf = '".\Yii::$app->getRequest()->csrfToken."'; return params; }});";
newerton commented 10 years ago

Abort the mission! There was an update on Yii2 that was not showing the csrf meta tags.

Added Layout:

<?= Html::csrfMetaTags(); ?>

Working!

tonydspaniard commented 10 years ago

@newerton cool!

gb5256 commented 8 years ago

I would like to re-open this issue. I am using latest yii2-advanced template with the <?= Html::csrfMetaTags(); ?> in the main layout. But I do not see the _crsf submitted on the editableColumn. Any Idea?