Esempio n. 1
0
 public function renderDelete($id = 0)
 {
     $album = new Albums();
     $this->template->album = $album->find($id)->fetch();
     if (!$this->template->album) {
         throw new Nette\Application\BadRequestException('Record not found');
     }
 }