Fixes #1221: make it easier to subclass BaseDataProvider with custom pagination.

This commit is contained in:
Qiang Xue
2013-11-18 11:23:11 -05:00
parent 1c5a6835e9
commit 8d4bf893e1

View File

@@ -165,10 +165,7 @@ abstract class BaseDataProvider extends Component implements DataProviderInterfa
public function getPagination()
{
if ($this->_pagination === null) {
$this->_pagination = new Pagination;
if ($this->id !== null) {
$this->_pagination->pageVar = $this->id . '-page';
}
$this->setPagination([]);
}
return $this->_pagination;
}