How to create the bulk action in Yii2

posted in: Yii2.0 framework

Howdy, working in the back-end in the web application, often you will find the bulk actions is very useful when you want to do the action with more than one record at once. Today I will share with you how to create bulk actions and work with grid view widget. Plus I use the pjax widget to make the changes from the action without reloading the whole page. The screenshot below shows the bulk action in Yii2 Here is what … Read More

Global search box in grid view widget in Yii2

posted in: Yii2.0 framework

One feature that the users like, is the global search. With CRUD from gii module, the index.php comes with filters for each column in grid view. The attribute calls filterModel. It is good and it is working perfectly. But it would be better if users can search for anything from one search box. In this post, we will implement the global search box for Currency index page. What we will do CurrencySearch.php (in models folder) Add new $globalSearch variable Set … Read More