public function renderDelete($id = 0) { $this->template->album = $this->albums->get($id); if (!$this->template->album) { throw new NA\BadRequestException('Record not found'); } }
public function renderDelete($id = 0) { $this->template->page = $this->pages->get($id); if (!$this->template->page) { throw new NA\BadRequestException('Záznam nebyl nalezen'); } }