protected function _fetchData(KViewContext $context) { parent::_fetchData($context); $model = $this->getModel(); $this->_setModelState($model); $context->data->items = $model->fetch(); $context->data->total = $model->count(); }
/** * Sets the parameters in the pageable behavior too * * {@inheritdoc} */ public function set($property, $value) { parent::set($property, $value); if ($property == 'module' && isset($this->module->params)) { $this->setParameters($this->module->params); } }