Yii2: How to setup pagination style and other labels

In Yii2 some time we need to setup pagination style according to our need or according to our theme. So setup style of pagination in Yii2 is very easy. Its same as in Yii.   <?= ListView::widget([    ‘dataProvider’ => $dataProvider,    ‘itemView’ => ‘_view’,    ‘pager’ => [        ‘options’=>[‘class’=>’pagination’],   // set clas name used in ui list […]

Read More

How to create listview page in Yii2

In Yii2 there no default listview page. So if you need to create list view page, then its not a difficult task. It is very easy. You need to do following steps. Step 1 First of all create your list action like public function actionList()    {        $dataProvider = new ActiveDataProvider([            ‘query’ => YourModelName::find();,         ]);        return […]

Read More