Features Netzbau-> Dateiablage und Stammdaten->Pops hinzugefügt

This commit is contained in:
Spitzer_Daniel
2023-02-16 15:44:19 +01:00
parent c5d36132d2
commit cf92596ebf
24 changed files with 2371 additions and 23 deletions

View File

@@ -26,6 +26,27 @@ class PopController extends mfBaseController
}
protected function detailAction()
{
$id = $this->request->id;
if (!is_numeric($id) || !$id) {
$this->layout()->setFlash("pop nicht gefunden", "error");
$this->redirect("Pop");
}
$device = new Device($id);
if ($device->id != $id) {
$this->layout()->setFlash("Pop nicht gefunden", "error");
$this->redirect("Pop");
}
$this->layout()->setTemplate("Pop/Detail");
$pops = PopModel::getOne($id);
$this->layout()->set("pops", $pops);
}
protected function addAction()
{
$this->layout()->setTemplate("Pop/Form");