Skip to content
Advertisement

Yii : How to add datepicker in order to filter gridview

Here is my codes in order to show some relation tables data in the controller

JavaScript

and it is view code

JavaScript

I want to add a date picker to view and use it in order to filter GridView
I am new in yii2 please advise me

Advertisement

Answer

first of all install any datepicker widget i.e 2amigos date picker

JavaScript

in your index grid

JavaScript

In your controller in actionindex()

JavaScript
User contributions licensed under: CC BY-SA
1 People found this is helpful
Advertisement