params->getRequired('cert'); try { $conn = $this->getDb(); } catch (ConfigurationError $_) { $this->render('missing-resource', null, true); return; } $cert = $conn->select( (new Sql\Select()) ->from('x509_certificate') ->columns('*') ->where(['id = ?' => $certId]) )->fetch(); if ($cert === false) { $this->httpNotFound($this->translate('Certificate not found.')); } $this->setTitle($this->translate('X.509 Certificate')); $this->view->certificateDetails = (new CertificateDetails()) ->setCert($cert); } }