template = 'pages/downloads.tpl'; $this->downloadsModel = new DownloadsModel(); } /* Display the index page. */ public function index(): void { $downloads = $this->downloadsModel->getAllDownloads(); $recommendedDownload = $this->downloadsModel->getRecommendedDownload(); $this->renderPage( array( 'title' => $this->getConfigVars('downloadsTitle'), 'description' => \strip_tags($this->getConfigVars('downloadsContentP1') ?? ''), 'content_title' => $this->getConfigVars('downloadsContentTitle'), 'downloads' => $downloads, 'recommendedDownload' => $recommendedDownload ) ); } }