yii2-multilingual-behavior icon indicating copy to clipboard operation
yii2-multilingual-behavior copied to clipboard

Don't work with Data Provider with ListView and findAll().

Open kongoon opened this issue 6 years ago • 1 comments

$news = new ActiveDataProvider([
            'query' => Post::find()->multilingual(),
            'sort' => [
                'defaultOrder' => [
                    'id' => SORT_DESC
                ]
            ]
        ]);

<?= ListView::widget([
            'summary' => false,
            'dataProvider' => $jobs,
            'itemView' => '_list'
        ]) ?>

kongoon avatar Aug 12 '18 08:08 kongoon

$query = Bank::find()->multilingual()->joinWith(['translation']); $dataProvider = new ActiveDataProvider([ 'query' => $query, ]);

asv2108 avatar Jan 22 '19 16:01 asv2108