Property | Type | Description | |
---|---|---|---|
$newSearchModel | a PHP callable that will be called to create the new search model. If not set, Index::newSearchModel will be used instead. The signature of the callable should be: php function ($action) { $action is the action object currently running } The callable should return the new model instance. | ||
$prepareDataProvider | a PHP callable that will be called to prepare a data provider that should return a collection of the models. If not set, Index::prepareDataProvider will be used instead. The signature of the callable should be: php function ($searchModel, $action) { $searchModel the search model instance $action is the action object currently running } The callable should return an instance of DataProviderInterface. | ||
$view | name of the view, which should be rendered |
Method | Description | |
---|---|---|
newSearchModel ( ) : |
Creates new search model instance. | |
run ( ) : mixed | Displays models list. |
Method | Description | |
---|---|---|
prepareDataProvider ( |
Prepares the data provider that should return the requested collection of the models. |
public newSearchModel ( ) : |
||
return | new model instance. |
protected prepareDataProvider ( |
||
$searchModel | search model instance. | |
return | yii\data\DataProviderInterface | data provider instance. |
public $newSearchModel |
public $prepareDataProvider |