示例#1
0
 public function render()
 {
     $this->template->notifications = $this->dataTransferManager->createQuery(NotificationDto::class, function () {
         return $this->notificationManager->getNotifications(5, $this->offset);
     })->enableCache($this->offset)->fetchAll();
     $this->template->notificationCount = $this->notificationManager->countNotifications();
     $this->template->offset = $this->offset + 5;
     $this->template->render();
 }