data\BaseDataProvider setPagination()

setPagination() public method

Sets the pagination for this data provider.

public void setPagination ( $value )
$value array|yii\data\Pagination|boolean

The pagination to be used by this data provider. This can be one of the following:

  • a configuration array for creating the pagination object. The "class" element defaults to 'yii\data\Pagination'
  • an instance of yii\data\Pagination or its subclass
  • false, if pagination needs to be disabled.
throws yii\base\InvalidParamException
doc_Yii
2016-10-30 16:55:51
Comments
Leave a Comment

Please login to continue.