public function Notifications() { $this->Permission('Garden.SignIn.Allow'); $Session = Gdn::Session(); // Drop notification count back to zero. $SQL = Gdn::SQL(); $SQL->Update('User')->Set('CountNotifications', '0')->Where('UserID', $Session->UserID)->Put(); $ActivityModel = new ActivityModel(); $this->NotificationData = $ActivityModel->GetNotifications($Session->UserID); $this->Render(); }