public function renderDelete($id = 0) { $this->template->album = $this->albums->findById($id); if (!$this->template->album) { $this->error('Record not found'); } }