rest\IndexAction $prepareDataProvider

$prepareDataProvider public property

A PHP callable that will be called to prepare a data provider that should return a collection of the models. If not set, prepareDataProvider() will be used instead. The signature of the callable should be:

function ($action) {
    // $action is the action object currently running
}

The callable should return an instance of yii\data\ActiveDataProvider.

doc_Yii
2016-10-30 17:11:05
Comments
Leave a Comment

Please login to continue.