Filter & Sort by Summary Data in GridView Yii 2.0

This web-tip explains how to add summary data from related models into your Yii Framework 2.0 gridview with filtering and sorting by the summary columns. Note: This is a variation to this web-tip which filters and sorts by related fields. In this web-tip, we will see specifically how to pull in SUMMARY data from related […]

Read More

Using yii2-datecontrol within yii2-detail-view

About DateControl and DetailView: The yii2-datecontrol extension allows you to control separate date formats for display and saving for form inputs. The yii2-detail-view extension, enhances the yii DetailView and enables you to toggle between VIEW and EDIT modes with other features. This article explains you how you combine both. That is, how you can enable […]

Read More

Wrong URL Parameters in Yii2 form with GET method

This article explains a specific issue with the URL generated when using the GET method with Yii2 forms. Let’s consider, you are using an ActiveForm in yii (both v1.x or 2), with a GET method like below: // In Yii 2 $form = ActiveForm::begin([ ‘id’ => ‘order-search-form’, ‘method’ => ‘get’, ]); echo $form->field($searchModel, ‘id’); echo […]

Read More