Guest User

Untitled

a guest
Jan 17th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.99 KB | None | 0 0
  1. <?php Pjax::begin([
  2. 'timeout' => 100000,
  3. 'id'=>'pjax-container-table',
  4. ]); ?>
  5. <?=
  6. GridView::widget([
  7. 'id' => 'pjax-container-table',
  8. 'dataProvider' => $dataProvider,
  9. 'filterModel' => $searchModel,
  10. 'layout' => "{items} {pager}",
  11. 'columns' => $gridColumns,
  12. ]);
  13. ?>
  14. <?php Pjax::end(); ?>
  15.  
  16. <?php Pjax::begin([
  17. 'timeout' => 100000,
  18. 'id'=>'pjax-container-table',
  19. 'clientOptions' => ['method' => 'POST']
  20. ]); ?>
  21.  
  22. $dataProvider = $searchModel->search(Yii::$app->request->queryParams);
  23.  
  24. $dataProvider = $searchModel->search(Yii::$app->request->post());
  25.  
  26. <?php Pjax::begin([
  27. 'timeout' => 100000,
  28. 'id'=>'pjax-container-table',
  29. 'enablePushState' => false
  30. ]); ?>
Add Comment
Please, Sign In to add comment