I want to get data from a grid into a presenter. So I used method $grid->getData(FALSE) for that and it works fine. But if I want to render grid an error "Trying to get property of non-object" is thrown from grid's template. It is because you don't have initialized paginator correctly. The paginator should be set to template via getter $this->template->paginator = $this->getPaginator().
Hello,
I want to get data from a grid into a presenter. So I used method
$grid->getData(FALSE)
for that and it works fine. But if I want to render grid an error "Trying to get property of non-object" is thrown from grid's template. It is because you don't have initialized paginator correctly. The paginator should be set to template via getter$this->template->paginator = $this->getPaginator()
.